66
77# Class: EntAccessError
88
9- Defined in: [ src/ent/errors/EntAccessError.ts:7 ] ( https://github.com/clickup/ent-framework/blob/master/src/ent/errors/EntAccessError.ts#L7 )
9+ Defined in: [ src/ent/errors/EntAccessError.ts:22 ] ( https://github.com/clickup/ent-framework/blob/master/src/ent/errors/EntAccessError.ts#L22 )
1010
11- A base class for errors which trigger the validation framework to process
12- them as a DENY/SKIP.
11+ A base class for errors that trigger the validation framework to process them
12+ as a DENY/SKIP. Invariants in derived classes: the error message should be
13+ safe to pass to the client (it must not have any private information; a good
14+ example is EntValidationError), plus the message alone should be descriptive
15+ enough to extract information from it. If ` cause ` is passed, it becomes a
16+ part of the message, with the above assumptions.
1317
1418## Extends
1519
@@ -29,7 +33,7 @@ them as a DENY/SKIP.
2933
3034> ** new EntAccessError** (` entName ` , ` message ` , ` cause ` ): [ ` EntAccessError ` ] ( EntAccessError.md )
3135
32- Defined in: [ src/ent/errors/EntAccessError.ts:10 ] ( https://github.com/clickup/ent-framework/blob/master/src/ent/errors/EntAccessError.ts#L10 )
36+ Defined in: [ src/ent/errors/EntAccessError.ts:25 ] ( https://github.com/clickup/ent-framework/blob/master/src/ent/errors/EntAccessError.ts#L25 )
3337
3438#### Parameters
3539
@@ -53,3 +57,15 @@ Defined in: [src/ent/errors/EntAccessError.ts:10](https://github.com/clickup/ent
5357| ------ | ------ |
5458| <a id =" cause-1 " ></a > ` cause ` | ` null ` \| ` string ` \| ` Error ` |
5559| <a id =" entname-1 " ></a > ` entName ` | ` string ` |
60+
61+ ## Methods
62+
63+ ### toStandardSchemaV1()
64+
65+ > ** toStandardSchemaV1** (): [ ` StandardSchemaV1FailureResult ` ] ( ../interfaces/StandardSchemaV1FailureResult.md )
66+
67+ Defined in: [ src/ent/errors/EntAccessError.ts:52] ( https://github.com/clickup/ent-framework/blob/master/src/ent/errors/EntAccessError.ts#L52 )
68+
69+ #### Returns
70+
71+ [ ` StandardSchemaV1FailureResult ` ] ( ../interfaces/StandardSchemaV1FailureResult.md )
0 commit comments