ParseResult
Provides convenience methods for creating instances of ParseResult.
Attributes
- Graph
-
- Supertypes
-
trait WithDefault[ParseError]trait Simple[ParseError]trait Simple[ParseError]class Objecttrait Matchableclass AnyShow all
- Self type
-
ParseResult.type
Members list
Value members
Concrete methods
Creates a new ParseResult failure wrapping a ParseError.IOError error.
Creates a new ParseResult failure wrapping a ParseError.IOError error.
Attributes
- Example
-
scala> ParseResult.io(new java.io.IOException("some sort of io error")) res0: ParseResult[Nothing] = Left(IOError: some sort of io error)
Creates a new ParseResult failure wrapping a ParseError.NoSuchElement error.
Creates a new ParseResult failure wrapping a ParseError.NoSuchElement error.
Attributes
- Example
-
scala> ParseResult.noSuchElement res0: ParseResult[Nothing] = Left(NoSuchElement: trying to read from an empty reader)
Inherited methods
Attempts to evaluate the specified expression.
Attempts to evaluate the specified expression.
Attributes
- Inherited from:
- WithDefault
Turns the specified value into a failure.
Turns the specified value into a failure.
Attributes
- Inherited from:
- Simple
Turns the specified Try
into a result.
Turns the specified Try
into a result.
Attributes
- Inherited from:
- WithDefault
Turns a collection of results into a result of a collection.
Turns a collection of results into a result of a collection.
Attributes
- Inherited from:
- Simple
Turns the specified value into a success.
Turns the specified value into a success.
Attributes
- Inherited from:
- Simple