diff --git a/app/src/main/java/com/example/nemophila/entities/ErrorType.java b/app/src/main/java/com/example/nemophila/entities/ErrorType.java new file mode 100644 index 0000000..4ab24d7 --- /dev/null +++ b/app/src/main/java/com/example/nemophila/entities/ErrorType.java @@ -0,0 +1,19 @@ +package com.example.nemophila.entities; + +public enum ErrorType { + ResponseError("レスポンスエラー"), + NetworkError("ネットワークエラー"), + InvalidToken("トークンが不一致"), + UnknownError("不明なエラー"), + ResponseNoyFound("リソースが見つかりません"); + + private final String text; + + ErrorType(String text) { + this.text = text; + } + + public String getText() { + return text; + } +}