-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exception 처리 시 서버 오류
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...ong-presentation/src/main/kotlin/team/comit/simtong/domain/file/error/WebFileErrorCode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package team.comit.simtong.domain.file.error | ||
|
||
import team.comit.simtong.global.error.WebErrorProperty | ||
|
||
/** | ||
* | ||
* 표현 계층의 File Error를 관리하는 WebFileErrorCode | ||
* | ||
* @author Chokyunghyeon | ||
* @date 2022/12/09 | ||
* @version 1.0.0 | ||
**/ | ||
enum class WebFileErrorCode( | ||
private val status: Int, | ||
private val message: String | ||
) : WebErrorProperty { | ||
|
||
INVALID_EXTENSION(400, "제한된 확장자"); | ||
|
||
override fun status(): Int = status | ||
|
||
override fun message(): String = message | ||
|
||
} |