Package com.io7m.idstore.server.user_v1
Class IdU1Errors
java.lang.Object
com.io7m.idstore.server.user_v1.IdU1Errors
Functions to transform exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdHTTPServletResponseTypeerrorResponseOf(IdUCB1Messages messages, IdHTTPServletRequestInformation information, IdUResponseBlame blame, IdException exception) Transform an exception into an error response.static IdHTTPServletResponseTypeerrorResponseOf(IdUCB1Messages messages, IdHTTPServletRequestInformation information, IdCommandExecutionFailure exception) Transform an exception into an error response.
-
Method Details
-
errorResponseOf
public static IdHTTPServletResponseType errorResponseOf(IdUCB1Messages messages, IdHTTPServletRequestInformation information, IdUResponseBlame blame, IdException exception) Transform an exception into an error response.- Parameters:
messages- A message serializerinformation- The request informationblame- The blame assignmentexception- The exception- Returns:
- An error response
-
errorResponseOf
public static IdHTTPServletResponseType errorResponseOf(IdUCB1Messages messages, IdHTTPServletRequestInformation information, IdCommandExecutionFailure exception) Transform an exception into an error response.- Parameters:
messages- A message serializerinformation- The request informationexception- The exception- Returns:
- An error response
-