MCPcopy Index your code
hub / github.com/apache/casbin / NewConstraintViolationError

Function NewConstraintViolationError

errors/constraint_errors.go:41–46  ·  view source on GitHub ↗

NewConstraintViolationError creates a new constraint violation error.

(constraintName, message string)

Source from the content-addressed store, hash-verified

39
40// NewConstraintViolationError creates a new constraint violation error.
41func NewConstraintViolationError(constraintName, message string) error {
42 return &ConstraintViolationError{
43 ConstraintName: constraintName,
44 Message: message,
45 }
46}

Callers 4

validateSODMethod · 0.92
validateSODMaxMethod · 0.92
validateRoleMaxMethod · 0.92
validateRolePreMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…