ModelError
Thrown when the model rejects a query or an edit. Invalid arguments throw TypeError or
RangeError instead. A failed edit rolls back the current operation, even if the script
catches the error.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModelError(
message?):ModelError
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”ModelError
Inherited from
Section titled “Inherited from”Error.constructor
Constructor
Section titled “Constructor”new ModelError(
message?,options?):ModelError
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”ModelError
Inherited from
Section titled “Inherited from”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Inherited from
Section titled “Inherited from”Error.message
readonlyname:"ModelError"
Overrides
Section titled “Overrides”Error.name
stack?
Section titled “stack?”
optionalstack?:string
Inherited from
Section titled “Inherited from”Error.stack