Class ErrorResponse


  • public class ErrorResponse
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorResponse​(java.lang.String message)
      Creates new error response with message.
      ErrorResponse​(java.lang.String message, java.lang.Exception ex)
      Creates new error response with message and stacktrace.
      ErrorResponse​(MotsException ex)
      Creates new error response with message, details and stacktrace.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorResponse

        public ErrorResponse​(java.lang.String message)
        Creates new error response with message.
        Parameters:
        message - message displayed to the user
      • ErrorResponse

        public ErrorResponse​(java.lang.String message,
                             java.lang.Exception ex)
        Creates new error response with message and stacktrace.
        Parameters:
        message - message displayed to the user
        ex - cause of the error
      • ErrorResponse

        public ErrorResponse​(MotsException ex)
        Creates new error response with message, details and stacktrace.
        Parameters:
        ex - cause of the error