Browse Source

Update exception-handling.md

pull/21035/head
Fahri Gedik 2 years ago
committed by GitHub
parent
commit
032c56f679
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      docs/en/framework/fundamentals/exception-handling.md

8
docs/en/framework/fundamentals/exception-handling.md

@ -31,7 +31,7 @@ Error Message is an instance of the `RemoteServiceErrorResponse` class. The simp
There are **optional fields** those can be filled based upon the exception that has occurred. There are **optional fields** those can be filled based upon the exception that has occurred.
##### Error Code #### Error Code
Error **code** is an optional and unique string value for the exception. Thrown `Exception` should implement the `IHasErrorCode` interface to fill this field. Example JSON value: Error **code** is an optional and unique string value for the exception. Thrown `Exception` should implement the `IHasErrorCode` interface to fill this field. Example JSON value:
@ -46,7 +46,7 @@ Error **code** is an optional and unique string value for the exception. Thrown
Error code can also be used to localize the exception and customize the HTTP status code (see the related sections below). Error code can also be used to localize the exception and customize the HTTP status code (see the related sections below).
##### Error Details #### Error Details
Error **details** in an optional field of the JSON error message. Thrown `Exception` should implement the `IHasErrorDetails` interface to fill this field. Example JSON value: Error **details** in an optional field of the JSON error message. Thrown `Exception` should implement the `IHasErrorDetails` interface to fill this field. Example JSON value:
@ -60,7 +60,7 @@ Error **details** in an optional field of the JSON error message. Thrown `Except
} }
``` ```
##### Validation Errors #### Validation Errors
**validationErrors** is a standard field that is filled if the thrown exception implements the `IHasValidationErrors` interface. **validationErrors** is a standard field that is filled if the thrown exception implements the `IHasValidationErrors` interface.
@ -340,4 +340,4 @@ Here, a list of the options you can configure:
## See Also ## See Also
* [Video tutorial](https://abp.io/video-courses/essentials/exception-handling) * [Video tutorial](https://abp.io/video-courses/essentials/exception-handling)

Loading…
Cancel
Save