скорректировал коды ошибок на backend-api
This commit is contained in:
parent
7682259396
commit
ee3bca8ed2
3 changed files with 13 additions and 12 deletions
|
|
@ -3,12 +3,12 @@ package ru.spcex.clearing.backendapi.errors;
|
|||
import ru.spcex.platform.utils.enumeration.IEnumId;
|
||||
|
||||
public enum BackEndError implements IEnumId {
|
||||
ValidationError(3000L),
|
||||
UnknownJsonProperty(3001L),
|
||||
FailedToReadHttpMessage(3002L),
|
||||
KeycloakRepeatedRoles(3003L),
|
||||
DictionaryNotFound(3004L),
|
||||
ResourceNotFound(404L)
|
||||
ValidationError(9000L),
|
||||
UnknownJsonProperty(9001L),
|
||||
FailedToReadHttpMessage(9002L),
|
||||
KeycloakRepeatedRoles(9003L),
|
||||
DictionaryNotFound(9004L),
|
||||
ResourceNotFound(9005L)
|
||||
;
|
||||
private final Long id;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
1=This is error example 1.
|
||||
3000=validation error field '%s'
|
||||
3001=unrecognized json property '%s'
|
||||
3002=failed to read http message
|
||||
3004=couldn't find dictionary '%s'
|
||||
9000=validation error field '%s'
|
||||
9001=unrecognized json property '%s'
|
||||
9002=failed to read http message
|
||||
9003=Keycloak roles contain repeated elements
|
||||
9004=couldn't find dictionary '%s'
|
||||
9005=Not found %s
|
||||
|
|
@ -1,2 +1 @@
|
|||
1=Пример ошибки с идентификатором 1.
|
||||
3000=Ошибка валидации, поле: %s
|
||||
1=Пример ошибки с идентификатором 1.
|
||||
Loading…
Add table
Reference in a new issue