ParseResult

sealed class ParseResult<out T>

Represents the result of parsing a schema or environment file. Either a successful parse with the resulting value, or a failure with error details.

Inheritors

Types

Link copied to clipboard
data class Failure(val errors: List<ParseError>) : ParseResult<Nothing>

Failed parse result containing one or more errors with location information.

Link copied to clipboard
data class Success<T>(val value: T) : ParseResult<T>

Successful parse result containing the parsed value.