forked from swagger-api/swagger-parser
/
exceptions.yml
67 lines (67 loc) · 2.13 KB
/
exceptions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
components:
schemas:
Exception:
type: object
Rfc7807Exception:
description: The Rfc7807 specification for exceptions.
allOf:
- $ref: '#/components/schemas/Exception'
- type: object
properties:
type:
type: string
description: A URI reference that identifies the problem type.
required:
- type
- title
- status
- detail
AbsisExceptionType:
type: string
enum: [VALIDATION, BUSINESS, RUNTIME, CHALLENGE, NOTFOUND, UNAUTHORIZED, AUTHENTICATION]
description: The possible types of an AbsisException.
AbsisFieldError:
type: object
description: The representation of a validation error.
properties:
code:
type: string
description: The error code.
example:
code: request
parameters:
- codes:
- aCode
- otherCode
value: NotNull
AbsisException:
description: Representation of an exception.
allOf:
- $ref: '#/components/schemas/Rfc7807Exception'
- type: object
properties:
_class:
type: string
description: The canonical name of the class AbsisException.
cause:
$ref: '#/components/schemas/AbsisException'
description: The AbsisException wrapping the exception that originated this exception.
responses:
'400':
description: Error when validating input parameters or request body.
content:
application/json:
schema:
$ref: '#/components/schemas/AbsisException'
'404':
description: The endpoint does not exists or the attempted resource does not exist.
content:
application/json:
schema:
$ref: '#/components/schemas/AbsisException'
'500':
description: Unexpected error occurred at one of the layers of the microservice, controller, business service, repository etc.
content:
application/json:
schema:
$ref: '#/components/schemas/AbsisException'