ParseError

zio.blocks.smithy.SmithyError.ParseError
final case class ParseError(message: String, line: Int, column: Int, source: Option[String]) extends SmithyError

Parse error - occurs when Smithy IDL is malformed or contains unexpected tokens.

Value parameters

column

column number where parsing failed

line

line number where parsing failed

message

descriptive error message

source

optional source code snippet for context

Attributes

Source
SmithyError.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SmithyError
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def formatMessage: String

Formats the error into a readable message with location and optional source context.

Formats the error into a readable message with location and optional source context.

Format: "Parse error at line X, column Y: " If source is present: appends "\nSource: "

Attributes

Inherited from:
SmithyError
Source
SmithyError.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala