Skip to content

Commit

Permalink
feat: UnprocessableEntityException 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
moonimooni committed Nov 29, 2024
1 parent 0120d6d commit 7779a50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/exception/client-exception/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export { NotFoundException } from './not-found-exception';
export { TokenExpiredException } from './token-expired-exception';
export { UnauthorizedException } from './unauthorized-exception';
export { ConflictException } from './conflict-exception';
export { UnprocessableEntityException } from './unprocessable-entity-exception';
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { HttpState } from '../../http-client';
import { ClientException } from './client-exception';

export class UnprocessableEntityException extends ClientException {
constructor(message = 'UNPROCESSABLE ENTITY', cause?: Error) {
super(HttpState.UNPROCESSABLE_ENTITY, message, cause);
}
}
1 change: 1 addition & 0 deletions src/exception/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export {
TokenExpiredException,
UnauthorizedException,
ConflictException,
UnprocessableEntityException,
} from './client-exception';
export { CustomException } from './custom-exception';
export { DataException, InternalServerException, ServerException, UnknownException } from './server-exception';

0 comments on commit 7779a50

Please sign in to comment.