← Standard library

ParseErrorKind

enum ParseErrorKind extends int32
import ParseErrorKind from Wax;

Reasons numeric parsing can fail: empty input, missing digits, invalid characters, a negative unsigned input, an out-of-range value, or an unsupported radix.

ParseError.wax:5

Members

Emptycase

case Empty

The input has no bytes.

ParseError.wax:9

NoDigitscase

case NoDigits

No digits were found where a numeric value was required.

ParseError.wax:13

InvalidCharactercase

case InvalidCharacter

A character does not belong to the accepted numeric syntax.

ParseError.wax:17

NegativeUnsignedcase

case NegativeUnsigned

A negative sign was supplied for an unsigned target.

ParseError.wax:21

OutOfRangecase

case OutOfRange

The parsed value does not fit the target type.

ParseError.wax:25

InvalidRadixcase

case InvalidRadix

The requested number base is unsupported.

ParseError.wax:29

CompareTomethod

public fn CompareTo(ParseErrorKind other) : int32

Provided by the compiler.

Equalsmethod

public fn Equals(ParseErrorKind other) : bool

Provided by the compiler.

GetHashCodemethod

public fn GetHashCode() : uint32

Provided by the compiler.

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.