package com.nulabinc.backlog4j;

/**
 * Exception thrown when a api response contains error.
 *
 * @author nulab-inc
 */
public abstract class BacklogException extends RuntimeException {

    public BacklogException(String message, Throwable cause) {
        super(message, cause);
    }

    public BacklogException(String message) {
        super(message);
    }

    public BacklogException(Throwable cause) {
        super(cause);
    }

    abstract public int getStatusCode();
}

@@ -181,16 +181,808 @@
 tion %7B%0A%0A
+    enum ErrorType %7B%0A        Undefined(-1),%0A        InternalError(1), LicenceError(2), LicenceExpiredError(3), AccessDeniedError(4),%0A        UnauthorizedOperationError(5), NoResourceError(6), InvalidRequestError(7),%0A        SpaceOverCapacityError(8), ResourceOverflowError(9), TooLargeFileError(10),%0A        AuthenticationError(11);%0A%0A        ErrorType(int intValue) %7B%0A            this.intValue = intValue;%0A        %7D%0A%0A        public int getIntValue() %7B%0A            return intValue;%0A        %7D%0A%0A        public static ErrorType valueOf(final int anIntValue) %7B%0A            for (ErrorType d : values()) %7B%0A                if (d.getIntValue() == anIntValue) %7B%0A                    return d;%0A                %7D%0A            %7D%0A            return Undefined;%0A        %7D%0A%0A        private int intValue;%0A    %7D%0A%0A
     publ
@@ -1267,11 +1267,106 @@
 sCode();
+%0A%0A    public ErrorType getErrorType()%7B%0A        return ErrorType.valueOf(getStatusCode());%0A    %7D
 %0A%7D%0A

Add error type enum