--- lib/domain/content-form.ts
+++ lib/domain/content-form.ts
... | ... | @@ -32,6 +32,17 @@ |
| 32 | 32 |
|
| 33 | 33 |
export const INITIAL_CONTENT_FORM_STATE: ContentFormState = { status: 'idle' };
|
| 34 | 34 |
|
| 35 |
+/** |
|
| 36 |
+ * 사용자에게 그대로 보여도 되는 오류 — 용량·확장자처럼 사람이 고칠 수 있는 사유다. |
|
| 37 |
+ * 그 밖의 예외는 개발자용 문구라 화면에 내지 않고 서버 로그로만 남긴다. |
|
| 38 |
+ */ |
|
| 39 |
+export class ContentInputError extends Error {
|
|
| 40 |
+ constructor(message: string) {
|
|
| 41 |
+ super(message); |
|
| 42 |
+ this.name = 'ContentInputError'; |
|
| 43 |
+ } |
|
| 44 |
+} |
|
| 45 |
+ |
|
| 35 | 46 |
export type GradeSelection = {
|
| 36 | 47 |
/** `COM_SCHUL_CD` 코드값. */ |
| 37 | 48 |
schoolCode: string; |
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?