Package com.swoval.functional
Class Either.NotRightException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.swoval.functional.Either.NotRightException
-
- All Implemented Interfaces:
java.io.Serializable
public static class Either.NotRightException extends java.lang.RuntimeException
An error that is thrown if an attempt is made to project an Either toEither.Right
when the object is actually an instance ofEither.Left
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotRightException()
-