handles/error

Types

pub type RuntimeError {
  UnexpectedType(
    index: Int,
    path: List(String),
    got: String,
    expected: List(String),
  )
  UnknownProperty(index: Int, path: List(String))
  UnknownPartial(index: Int, id: String)
}

Constructors

  • UnexpectedType(
      index: Int,
      path: List(String),
      got: String,
      expected: List(String),
    )
  • UnknownProperty(index: Int, path: List(String))
  • UnknownPartial(index: Int, id: String)
pub type TokenizerError {
  UnbalancedTag(index: Int)
  UnbalancedBlock(index: Int)
  MissingArgument(index: Int)
  MissingBlockKind(index: Int)
  MissingPartialId(index: Int)
  UnexpectedMultipleArguments(index: Int)
  UnexpectedArgument(index: Int)
  UnexpectedBlockKind(index: Int)
  UnexpectedBlockEnd(index: Int)
}

Constructors

  • UnbalancedTag(index: Int)
  • UnbalancedBlock(index: Int)
  • MissingArgument(index: Int)
  • MissingBlockKind(index: Int)
  • MissingPartialId(index: Int)
  • UnexpectedMultipleArguments(index: Int)
  • UnexpectedArgument(index: Int)
  • UnexpectedBlockKind(index: Int)
  • UnexpectedBlockEnd(index: Int)
Search Document