Package com.io7m.idstore.server.admin_v1
Class IdA1Errors
java.lang.Object
com.io7m.idstore.server.admin_v1.IdA1Errors
Functions to transform exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdAResponseErrorerrorOf(IdHTTPServletRequestInformation information, IdAResponseBlame blame, IdException exception) Transform an exception into an error response.static IdHTTPServletResponseTypeerrorResponseOf(IdACB1Messages messages, IdHTTPServletRequestInformation information, IdAResponseBlame blame, IdException exception) Transform an exception into an error response.static IdHTTPServletResponseTypeerrorResponseOf(IdACB1Messages messages, IdHTTPServletRequestInformation information, IdCommandExecutionFailure exception) Transform an exception into an error response.
-
Method Details
-
errorOf
public static IdAResponseError errorOf(IdHTTPServletRequestInformation information, IdAResponseBlame blame, IdException exception) Transform an exception into an error response.- Parameters:
information- The request informationblame- The blame assignmentexception- The exception- Returns:
- An error response
-
errorResponseOf
public static IdHTTPServletResponseType errorResponseOf(IdACB1Messages messages, IdHTTPServletRequestInformation information, IdAResponseBlame 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(IdACB1Messages 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
-