Class Either.NotRightException

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

    public static class Either.NotRightException
    extends java.lang.RuntimeException
    An error that is thrown if an attempt is made to project an Either to Either.Right when the object is actually an instance of Either.Left.
    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

      • NotRightException

        public NotRightException()