Package com.io7m.idstore.server.user_v1

# Class IdU1Errors

java.lang.Object
com.io7m.idstore.server.user_v1.IdU1Errors

public final class IdU1Errors extends Object
Functions to transform exceptions.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static IdHTTPServletResponseType`
  `errorResponseOf(IdUCB1Messages messages, IdHTTPServletRequestInformation information, IdUResponseBlame blame, IdException exception)`
  Transform an exception into an error response.
  `static IdHTTPServletResponseType`
  `errorResponseOf(IdUCB1Messages messages, IdHTTPServletRequestInformation information, IdCommandExecutionFailure exception)`
  Transform an exception into an error response.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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 serializer
      `information` - The request information
      `blame` - The blame assignment
      `exception` - 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 serializer
      `information` - The request information
      `exception` - The exception
    Returns:
      An error response