Failure

class Failure<T>(val reason: String, debuggerResult: String) : NiwenParser.ParserResult<T>

Failed parser result. You can usually get a more in-depth analysis by enabling the debugger and getting the ParserResult.debuggerResult

Constructors

Link copied to clipboard
constructor(reason: String, debuggerResult: String)

Functions

Link copied to clipboard
open override fun orThrow(): Nothing

Return the object wrapped by this

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

The resulting YAML from the debugger if enabled, or a short message which indicates that the debugger was disabled

Link copied to clipboard

Short reason message for the failure