Class ErrorResponse
- java.lang.Object
-
- org.motechproject.mots.errorhandling.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.
-
-
-
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 userex
- cause of the error
-
ErrorResponse
public ErrorResponse(MotsException ex)
Creates new error response with message, details and stacktrace.- Parameters:
ex
- cause of the error
-
-