Package cronapi

Class ErrorResponse

java.lang.Object
cronapi.ErrorResponse

public class ErrorResponse extends Object
  • Constructor Details

    • ErrorResponse

      public ErrorResponse(int status, Throwable ex, String method)
  • Method Details

    • getError

      public String getError()
    • getMethod

      public String getMethod()
    • setError

      public void setError(String error)
    • getStatus

      public int getStatus()
    • setStatus

      public void setStatus(int status)
    • getStackTrace

      public String getStackTrace()
    • setStackTrace

      public void setStackTrace(String stackTrace)
    • createException

      public static RuntimeException createException(Throwable ex, String method)
    • getExceptionMessage

      public static String getExceptionMessage(Throwable ex, String method)
    • getMessageWithoutPackage

      public static String getMessageWithoutPackage(Throwable ex)
    • getConstraintViolationException

      public static String getConstraintViolationException(Throwable ex)
    • getExceptionMessage

      public static String getExceptionMessage(Throwable ex, String method, String entity)