Enum Class ErrorStatus
- All Implemented Interfaces:
BaseErrorCode
,Serializable
,Comparable<ErrorStatus>
,Constable
ErrorStatus는 서버 응답 시 사용되는 에러 코드를 정의.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription400 : Request, Response 오류500 : Database, Server 오류 -
Method Summary
Modifier and TypeMethodDescription에러 메시지와 코드를 포함하는 ErrorReasonDTO를 반환.HTTP 상태와 에러 메시지, 코드를 포함하는 ErrorReasonDTO를 반환.static ErrorStatus
Returns the enum constant of this class with the specified name.static ErrorStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BAD_REQUEST
400 : Request, Response 오류 -
UNAUTHORIZED
-
FORBIDDEN
-
RESPONSE_ERROR
-
INVALID_INPUT_VALUE
-
DUPLICATION_REQUEST
-
NOT_FIND_USER
-
NOT_APPROVED_USER
-
INVALID_LANGUAGE_ID
-
COUNTRY_NOT_FOUND
-
NOT_FIND_DAY
-
NOT_FIND_TIMESLOT
-
INVALID_ROLE
-
DAY_NOT_FOUND
-
TIME_SLOT_NOT_FOUND
-
INVALID_DAY_ID
-
INVALID_TIME_SLOT_ID
-
SONG_NOT_FOUND
-
SONG_ALREADY_COMPLETE
-
SCHEDULE_NOT_FOUND
-
SCHEDULE_ALREADY_BOOKED
-
APPLICATION_NOT_FOUND
-
DUPLICATE_APPLICATION
-
SCHEDULE_NOT_AVAILABLE
-
INVALID_APPLICATION_STATUS
-
APPLICATION_GROUP_NOT_FOUND
-
DUPLICATE_TIMESLOT
-
TIMESLOT_ALREADY_BOOKED
-
NOT_FIND_LESSON
-
STORYBOOK_NOT_FOUND
-
STORYBOOK_ALREADY_COMPLETE
-
STORYBOOK_PAGE_NOT_FOUND
-
TUTORINFO_NOT_FOUND
-
LESSON_NOT_FOUND
-
UNAUTHORIZED_TUTOR
-
TOO_EARLY_TO_CREATE_LESSON
-
LESSON_SCHEDULE_ALREADY_EXISTS
-
INVALID_DAY_NAME
-
LESSON_SCHEDULE_NOT_FOUND
-
INVALID_LESSON_STATUS
-
LESSON_NOT_STARTED
-
LESSON_ALREADY_STARTED
-
MEETING_ROOM_CREATION_FAILED
-
TRANSLATION_FAILED
-
EMPTY_JWT
-
INVALID_JWT
-
INVALID_USER_JWT
-
MISSING_AUTH_HEADER
-
INVALID_PAGE
-
PAGE_COUNT_MISMATCH
-
INVALID_JWT_EXPIRED
-
INVALID_JWT_SIGNATURE
-
S3_UPLOAD_ERROR
-
FILE_CONVERT_ERROR
-
TOKEN_NOT_FOUND
-
INVALID_TOKEN
-
INTERNAL_SERVER_ERROR
500 : Database, Server 오류 -
DATABASE_ERROR
-
SERVER_ERROR
-
PASSWORD_ENCRYPTION_ERROR
-
PASSWORD_DECRYPTION_ERROR
-
UNEXPECTED_ERROR
-
FAILED_TO_RECEIVE_FRAME
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getReason
에러 메시지와 코드를 포함하는 ErrorReasonDTO를 반환.- Specified by:
getReason
in interfaceBaseErrorCode
- Returns:
- 에러 메시지와 코드가 포함된 ErrorReasonDTO
-
getReasonHttpStatus
HTTP 상태와 에러 메시지, 코드를 포함하는 ErrorReasonDTO를 반환.- Specified by:
getReasonHttpStatus
in interfaceBaseErrorCode
- Returns:
- HTTP 상태와 에러 메시지, 코드가 포함된 ErrorReasonDTO
-