Package com.backpackcloud.zipper
Class UnbelievableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.backpackcloud.zipper.UnbelievableException
-
- All Implemented Interfaces:
Serializable
public class UnbelievableException extends RuntimeException
OMG! I can't believe this is happening!- Author:
- Marcelo GuimarĂ£es
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnbelievableException()UnbelievableException(String message)UnbelievableException(String message, Throwable cause)UnbelievableException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)UnbelievableException(Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Supplier<UnbelievableException>because(String reason)Creates a supplier that uses the given reason as the exception message.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
because
public static Supplier<UnbelievableException> because(String reason)
Creates a supplier that uses the given reason as the exception message.- Parameters:
reason- the exception message- Returns:
- a supplier that creates a new UnbelievableException with the given reason.
-
-