Package io.bootique.di
Class DIRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.bootique.di.DIRuntimeException
-
- All Implemented Interfaces:
Serializable
public class DIRuntimeException extends RuntimeException
A runtime exception thrown on DI misconfiguration.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DIRuntimeException()
Creates newDIRuntimeException
without detail message.DIRuntimeException(String messageFormat, Object... messageArgs)
Constructs an exception with the specified message with an optional list of message formatting arguments.DIRuntimeException(String messageFormat, Throwable cause, Object... messageArgs)
DIRuntimeException(Throwable cause)
Constructs an exception wrapping another exception thrown elsewhere.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectionTraceElement[]
getInjectionTrace()
String
getMessage()
String
getOriginalMessage()
void
setInjectionTrace(InjectionTraceElement[] injectionTrace)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DIRuntimeException
public DIRuntimeException()
Creates newDIRuntimeException
without detail message.
-
DIRuntimeException
public DIRuntimeException(String messageFormat, Object... messageArgs)
Constructs an exception with the specified message with an optional list of message formatting arguments. Message formatting rules follow "String.format(..)" conventions.
-
DIRuntimeException
public DIRuntimeException(Throwable cause)
Constructs an exception wrapping another exception thrown elsewhere.
-
-
Method Detail
-
setInjectionTrace
public void setInjectionTrace(InjectionTraceElement[] injectionTrace)
-
getInjectionTrace
public InjectionTraceElement[] getInjectionTrace()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getOriginalMessage
public String getOriginalMessage()
-
-