Class EitherParser.EitherParseException

All Implemented Interfaces:
Serializable
Enclosing class:
EitherParser<C,U,V>

public static final class EitherParser.EitherParseException extends ParserException
Exception thrown when both the primary and fallback parsers fail to parse the input.
See Also:
  • Method Details

    • primaryFailure

      public @NonNull Throwable primaryFailure()
      Returns the throwable thrown by the primary parser.
      Returns:
      primary failure
    • fallbackFailure

      public @NonNull Throwable fallbackFailure()
      Returns the throwable thrown by the fallback parser.
      Returns:
      fallback failure
    • primaryType

      public @NonNull TypeToken<?> primaryType()
      Returns the type produced by the primary parser.
      Returns:
      primary type
    • fallbackType

      public @NonNull TypeToken<?> fallbackType()
      Returns the type produced by the fallback parser.
      Returns:
      fallback type