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) -> LiteralValueExceptionParameters
textLiteral text.
typeLiteral 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) -> LiteralValueExceptionParameters
textLiteral text.
typeNameLiteral type name.
Return Value
a literal value exception which indicates a text string is not a valid literal for the specified type.