Class SystemException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.evolveum.midpoint.util.exception.SystemException
-
- All Implemented Interfaces:
Serializable
public class SystemException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SystemException()
SystemException(String message)
SystemException(String message, Throwable throwable)
SystemException(Throwable throwable)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SystemException
unexpected(@NotNull Throwable t)
A shortcut used to signal that an exception was really unexpected in the given context.static SystemException
unexpected(@NotNull Throwable t, String context)
A variant ofunexpected(Throwable)
that provides a little bit of context.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
unexpected
public static SystemException unexpected(@NotNull @NotNull Throwable t)
A shortcut used to signal that an exception was really unexpected in the given context. It means either a bug, or a problem outside midPoint we cannot do anything with. So it is expected _not_ to be caught and treated in any reasonable way.
-
unexpected
public static SystemException unexpected(@NotNull @NotNull Throwable t, String context)
A variant ofunexpected(Throwable)
that provides a little bit of context.
-
-