public class DynamicException extends RuntimeException
| Constructor and Description |
|---|
DynamicException() |
DynamicException(ErrorCode code,
String message) |
DynamicException(ErrorCode code,
String field,
String message) |
DynamicException(ErrorCode code,
String field,
String message,
Throwable throwable) |
DynamicException(ErrorCode code,
String message,
Throwable throwable) |
DynamicException(String message) |
DynamicException(String message,
Throwable throwable) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DynamicException()
public DynamicException(String message)
public void setFromCode(ErrorCode code)
public String getCode()
public Integer getStatus()
public String getField()
public void setField(String field)
public String getMessage()
getMessage in class Throwablepublic void setMessage(String message)
public DynamicException code(String code)
public DynamicException field(String field)
public DynamicException status(Integer status)
public DynamicException errorCode(ErrorCode codes)
public DynamicException message(String message)
public static DynamicException toDynamicException(Throwable throwable, ErrorCode code)
public static DynamicException toDynamicException(Throwable throwable)
public static DynamicException toDynamicException(String message, ErrorCode code)
public static DynamicException toDynamicException(String message)
public static DynamicException toDynamicExceptionWithPlugin(Throwable t)
public static br.com.neppo.jlibs.CustomResponse<Object> toCustomResponse(DynamicException exception)
public static br.com.neppo.jlibs.CustomResponse<Object> toCustomResponse(Exception e, ErrorCode code)
public static br.com.neppo.jlibs.CustomResponse<Object> toCustomResponse(String message, ErrorCode code)
public static boolean isDynamicException(Throwable throwable)
public static String resolveMessage(Throwable e)
e - public <T> br.com.neppo.jlibs.CustomResponse<T> applyTo(br.com.neppo.jlibs.CustomResponse<T> resp)
public br.com.neppo.jlibs.CustomResponse toCustomResponse()
Copyright © 2019. All rights reserved.