Class Either.NotLeftException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Either<L,​R>

    public static class Either.NotLeftException
    extends java.lang.RuntimeException
    An error that is thrown if an attempt is made to project an Either to Either.Left when the object is actually an instance of Either.Right.
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NotLeftException

        public NotLeftException()