ParseableByte

com.phasmidsoftware.tableparser.core.parse.Parseable.ParseableByte
See theParseableByte companion object
trait ParseableByte extends Parseable[Byte]

Parser of Byte.

Attributes

Companion
object
Graph
Supertypes
trait Parseable[Byte]
class Object
trait Matchable
class Any
Known subtypes
object ParseableByte

Members list

Value members

Concrete methods

def parse(s: String, optModifier: Option[String]): Try[Byte]

Parses the provided string input (s) into a Byte value safely, with optional modifications based on optModifier. In case of failure, it recovers with an error message indicating the inability to parse the value.

Parses the provided string input (s) into a Byte value safely, with optional modifications based on optModifier. In case of failure, it recovers with an error message indicating the inability to parse the value.

Value parameters

optModifier

an optional string modifier that can influence the parsing (currently unused in this implementation).

s

the string input to be parsed into a Byte.

Attributes

Returns

a Try[Byte] which contains the successfully parsed Byte value, or a Failure with relevant error information if parsing fails.