LiteralValueException

open class LiteralValueException : PanicError, @unchecked Sendable

Exception thrown when a data value literal is invalid.

  • Default initializer.

    Declaration

    Swift

    override public init()
  • Declaration

    Swift

    open class func withTextAndType(text: String, type: DataType) -> LiteralValueException

    Parameters

    text

    Literal text.

    type

    Literal type.

    Return Value

    a literal value exception which indicates a text string is not a valid literal for the specified type.

  • Declaration

    Swift

    open class func withTextAndTypeName(text: String, typeName: String) -> LiteralValueException

    Parameters

    text

    Literal text.

    typeName

    Literal type name.

    Return Value

    a literal value exception which indicates a text string is not a valid literal for the specified type.