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