NoSuccess

scala.util.parsing.combinator.Parsers.NoSuccess
See theNoSuccess companion class
object NoSuccess

An extractor so case NoSuccess(msg, next) can be used in matches.

Note: On Scala 2.13, using this extractor leads to an exhaustivity warning:

 def m(r: ParseResult[Int]) = r match {
   case Success(i) => ...
   case NoSuccess(msg, _) => ... // "warning: match may not be exhaustive"

To eliminate this warning, use the irrefutable NoSuccess.I extractor. Due to binary compatibility, NoSuccess itself cannot be changed.

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
NoSuccess.type

Members list

Type members

Classlikes

object I

An irrefutable version of the NoSuccess extractor, used as case NoSuccess.I(msg, next).

An irrefutable version of the NoSuccess extractor, used as case NoSuccess.I(msg, next).

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
I.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def unapply[T](x: ParseResult[T]): Option[(String, Input)]