RegexParseError

halotukozak.regex.RegexParseError
See theRegexParseError companion object
sealed trait RegexParseError

Reason a RegexParser.parse call did not produce a Regex.

Attributes

Companion
object
Source
RegexParser.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def message: String

Attributes

Source
RegexParser.scala
def pattern: String

Attributes

Source
RegexParser.scala
def position: Int

Attributes

Source
RegexParser.scala

Concrete methods

override def toString: String

Overridden here (rather than left to each case class) so it's picked up by every case class's synthesized toString slot instead of the default field dump they'd otherwise generate (InvalidSyntax((abc,3,expected \)` at position 3)`) — callers that just interpolate the error value directly get a readable message "for free".

Overridden here (rather than left to each case class) so it's picked up by every case class's synthesized toString slot instead of the default field dump they'd otherwise generate (InvalidSyntax((abc,3,expected \)` at position 3)`) — callers that just interpolate the error value directly get a readable message "for free".

Attributes

Definition Classes
Any
Source
RegexParser.scala