Package io.ryos.rhino.sdk.exceptions
Class Exceptions
- java.lang.Object
-
- io.ryos.rhino.sdk.exceptions.Exceptions
-
public class Exceptions extends java.lang.Object
Exception utils.- Since:
- 1.0
- Author:
- Erhan Bagdemir
-
-
Constructor Summary
Constructors Constructor Description Exceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
rethrow(java.lang.Exception e, java.lang.Class<? extends java.lang.RuntimeException> exception)
Rethrow any instance ofRuntimeException
by wrapping it into a new one, of which type passed as method parameter.static void
rethrow(java.lang.Exception e, java.lang.Class<? extends java.lang.RuntimeException> exception, java.lang.String logMsg)
Rethrow any instance ofRuntimeException
by wrapping it into a new one, of which type passed as method parameter while logging the error out.
-
-
-
Method Detail
-
rethrow
public static void rethrow(java.lang.Exception e, java.lang.Class<? extends java.lang.RuntimeException> exception, java.lang.String logMsg)
Rethrow any instance ofRuntimeException
by wrapping it into a new one, of which type passed as method parameter while logging the error out.- Parameters:
e
- Exception instance, that is caught.exception
- The new exception to be rethrown.logMsg
- Log message.
-
rethrow
public static void rethrow(java.lang.Exception e, java.lang.Class<? extends java.lang.RuntimeException> exception)
Rethrow any instance ofRuntimeException
by wrapping it into a new one, of which type passed as method parameter.- Parameters:
e
- Exception instance, that is caught.exception
- The new exception to be rethrown.
-
-