Class: ConstraintViolationError
@kortexya/reasoninglayer / ConstraintViolationError
Class: ConstraintViolationError
Defined in: src/errors.ts:109
Constraint violation error (HTTP 409).
A type constraint or uniqueness constraint was violated. Carries structured information about which term, feature, and constraint failed.
Extends
Constructors
Constructor
new ConstraintViolationError(
message,body,headers,errorCode?,termId?,feature?,constraint?):ConstraintViolationError
Defined in: src/errors.ts:119
Parameters
message
string
body
unknown
headers
Headers
errorCode?
string
termId?
string
feature?
string
constraint?
string
Returns
ConstraintViolationError
Overrides
Properties
body
readonlybody:unknown
Defined in: src/errors.ts:32
Parsed response body.
Inherited from
cause?
optionalcause:unknown
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
constraint
readonlyconstraint:string|undefined
Defined in: src/errors.ts:117
Constraint description, if available.
errorCode
readonlyerrorCode:string|undefined
Defined in: src/errors.ts:30
Backend error code (from response body error field), if present.
Inherited from
feature
readonlyfeature:string|undefined
Defined in: src/errors.ts:115
Feature name that violated the constraint, if available.
headers
readonlyheaders:Headers
Defined in: src/errors.ts:34
Response headers.
Inherited from
message
message:
string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
name
name:
string='ConstraintViolationError'
Defined in: src/errors.ts:110
Overrides
stack?
optionalstack:string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
status
readonlystatus:number
Defined in: src/errors.ts:28
HTTP status code.
Inherited from
termId
readonlytermId:string|undefined
Defined in: src/errors.ts:113
Term ID that violated the constraint, if available.