Package cronapi
Class ErrorResponse
- java.lang.Object
-
- cronapi.ErrorResponse
-
public class ErrorResponse extends Object
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse(int status, Throwable ex, String method)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimeExceptioncreateException(Throwable ex, String method)static StringgetConstraintViolationException(Throwable ex)StringgetError()static StringgetExceptionMessage(Throwable ex, String method)static StringgetExceptionMessage(Throwable ex, String method, String entity)static StringgetMessageWithoutPackage(Throwable ex)StringgetMethod()StringgetStackTrace()intgetStatus()voidsetError(String error)voidsetStackTrace(String stackTrace)voidsetStatus(int status)
-
-
-
Method Detail
-
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)
-
-