Class CA1Errors
java.lang.Object
com.io7m.cardant.server.inventory.v1.CA1Errors
Functions to transform exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CAHTTPResponseTypeerrorResponseOf(CAI1Messages messages, CAHTTPRequestInformation information, CAIResponseBlame blame, CAException exception) Transform an exception into an error response.static CAHTTPResponseTypeerrorResponseOf(CAI1Messages messages, CAHTTPRequestInformation information, CACommandExecutionFailure exception) Transform an exception into an error response.
-
Method Details
-
errorResponseOf
public static CAHTTPResponseType errorResponseOf(CAI1Messages messages, CAHTTPRequestInformation information, CAIResponseBlame blame, CAException 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 CAHTTPResponseType errorResponseOf(CAI1Messages messages, CAHTTPRequestInformation information, CACommandExecutionFailure exception) Transform an exception into an error response.- Parameters:
messages- A message serializerinformation- The request informationexception- The exception- Returns:
- An error response
-