Package in.hocg.boot.utils.exception
Class ServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- in.hocg.boot.utils.exception.ServiceException
-
- All Implemented Interfaces:
Serializable
public class ServiceException extends RuntimeException
Created by hocgin on 2019-09-24. email: hocgin@gmail.com- Author:
- hocgin
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceException(int code, String message)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Supplier<ServiceException>supplier(CharSequence template, Object... args)static ServiceExceptionwrap(int code, CharSequence message, Object... args)static ServiceExceptionwrap(CharSequence message, Object... args)static ServiceExceptionwrap(Exception e)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServiceException
protected ServiceException(int code, String message)
-
-
Method Detail
-
supplier
public static Supplier<ServiceException> supplier(CharSequence template, Object... args)
-
wrap
public static ServiceException wrap(Exception e)
-
wrap
public static ServiceException wrap(CharSequence message, Object... args)
-
wrap
public static ServiceException wrap(int code, CharSequence message, Object... args)
-
-