DataQueryError
open class DataQueryError : DataError, @unchecked Sendable
Exception thrown when a query cannot be parsed or evaluated.
-
Default initializer.
Declaration
Swift
override public init() -
Declaration
Swift
open class func cannotParse(_ value: String, type: String) -> DataQueryErrorParameters
valueText of value that could not be parsed.
typeName of expected data type.
Return Value
a new exception to be thrown when a value cannot be parsed from a query URL.
-
Declaration
Swift
open class func withCause(_ cause: Error?) -> DataQueryErrorParameters
causeRoot cause.
Return Value
A new exception with the specified root cause.
-
Declaration
Swift
open class func withMessage(_ message: String?) -> DataQueryErrorParameters
messageMessage text.
Return Value
A new exception with the specified message text.