You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/errors.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
# Errors
2
2
3
-
Errors returned will contain only the properties that are set on the `Error` class. Custom fields can be added through `Error.Meta`.
4
-
You can create a custom error by throwing a `JsonApiException` (which accepts an `Error` instance), or returning an `Error` instance from an `ActionResult` in a controller.
5
-
Please keep in mind that JSON:API requires Title to be a generic message, while Detail should contain information about the specific problem occurence.
3
+
Errors returned will contain only the properties that are set on the `ErrorObject` class. Custom fields can be added through `ErrorObject.Meta`.
4
+
You can create a custom error by throwing a `JsonApiException` (which accepts an `ErrorObject` instance), or returning an `ErrorObject` instance from an `ActionResult` in a controller.
5
+
Please keep in mind that JSON:API requires `Title` to be a generic message, while `Detail` should contain information about the specific problem occurence.
0 commit comments