public ErrorType getErrorType() {
        if (getCause() instanceof UnknownHostException || getCause() instanceof ConnectException) {
            return ErrorType.NETWORK_ERROR;
        }
        if (this instanceof BoxException.CorruptedContentException) {
            return ErrorType.CORRUPTED_FILE_TRANSFER;
        }
        BoxError error = this.getAsBoxError();
        String errorString = error != null ? error.getError() : null;
        return ErrorType.fromErrorInfo(errorString, getResponseCode());
    }
public ErrorType getErrorType ( ) { if ( getCause ( ) instanceof UnknownHostException || getCause ( ) instanceof ConnectException ) { return ErrorType . NETWORK_ERROR ; } if ( this instanceof BoxException . CorruptedContentException ) { return ErrorType . CORRUPTED_FILE_TRANSFER ; } BoxError error = this . getAsBoxError ( ) ; String errorString = error != null ? error . getError ( ) : null ; return ErrorType . fromErrorInfo ( errorString , getResponseCode ( ) ) ; }
@return a known error type that corresponds to a given response and code.