/** * Creates an RpcError with severity ERROR for reuse. * * @param errorType the conceptual layer at which the error occurred. * @param tag a short string that identifies the general type of error condition. See * {@link RpcError#getTag} for a list of suggested values. * @param message a string suitable for human display that describes the error condition. * @param applicationTag a short string that identifies the specific type of error condition. * @param info a string containing additional information to provide extended * and/or implementation-specific debugging information. * @param cause the exception that triggered the error. * * @return an RpcError */ public static RpcError newError(final ErrorType errorType, final String tag, final String message, final String applicationTag, final String info, final Throwable cause) { return new RpcErrorImpl(ErrorSeverity.ERROR, errorType, tag != null ? tag : "operation-failed", message, applicationTag, info, cause); }
/** * Creates an RpcError with severity WARNING for reuse. * * @param errorType the conceptual layer at which the warning occurred. * @param tag a short string that identifies the general type of warning condition. See * {@link RpcError#getTag} for a list of suggested values. * @param message a string suitable for human display that describes the warning condition. * @param applicationTag a short string that identifies the specific type of warning condition. * @param info a string containing additional information to provide extended * and/or implementation-specific debugging information. * @param cause the exception that triggered the warning. * * @return an RpcError */ public static RpcError newWarning(final ErrorType errorType, final String tag, final String message, final String applicationTag, final String info, final Throwable cause) { return new RpcErrorImpl(ErrorSeverity.WARNING, errorType, tag, message, applicationTag, info, cause); }
/** * Creates an RpcError with severity ERROR for reuse. * * @param errorType the conceptual layer at which the error occurred. * @param tag a short string that identifies the general type of error condition. See * {@link RpcError#getTag} for a list of suggested values. * @param message a string suitable for human display that describes the error condition. * @param applicationTag a short string that identifies the specific type of error condition. * @param info a string containing additional information to provide extended * and/or implementation-specific debugging information. * @param cause the exception that triggered the error. * * @return an RpcError */ public static RpcError newError(final ErrorType errorType, final String tag, final String message, final String applicationTag, final String info, final Throwable cause) { return new RpcErrorImpl(ErrorSeverity.ERROR, errorType, tag != null ? tag : "operation-failed", message, applicationTag, info, cause); }
/** * Creates an RpcError with severity WARNING for reuse. * * @param errorType the conceptual layer at which the warning occurred. * @param tag a short string that identifies the general type of warning condition. See * {@link RpcError#getTag} for a list of suggested values. * @param message a string suitable for human display that describes the warning condition. * @param applicationTag a short string that identifies the specific type of warning condition. * @param info a string containing additional information to provide extended * and/or implementation-specific debugging information. * @param cause the exception that triggered the warning. * * @return an RpcError */ public static RpcError newWarning(final ErrorType errorType, final String tag, final String message, final String applicationTag, final String info, final Throwable cause) { return new RpcErrorImpl(ErrorSeverity.WARNING, errorType, tag, message, applicationTag, info, cause); }
/** * Creates an RpcError with severity ERROR for reuse. * * @param errorType the conceptual layer at which the error occurred. * @param tag a short string that identifies the general type of error condition. See * {@link RpcError#getTag} for a list of suggested values. * @param message a string suitable for human display that describes the error condition. * * @return an RpcError */ public static RpcError newError(final ErrorType errorType, final String tag, final String message) { return new RpcErrorImpl(ErrorSeverity.ERROR, errorType, tag != null ? tag : "operation-failed", message, null, null, null); }
/** * Creates an RpcError with severity ERROR for reuse. * * @param errorType the conceptual layer at which the error occurred. * @param tag a short string that identifies the general type of error condition. See * {@link RpcError#getTag} for a list of suggested values. * @param message a string suitable for human display that describes the error condition. * * @return an RpcError */ public static RpcError newError(final ErrorType errorType, final String tag, final String message) { return new RpcErrorImpl(ErrorSeverity.ERROR, errorType, tag != null ? tag : "operation-failed", message, null, null, null); }
/** * Creates an RpcError with severity WARNING for reuse. * * @param errorType the conceptual layer at which the warning occurred. * @param tag a short string that identifies the general type of warning condition. See * {@link RpcError#getTag} for a list of suggested values. * @param message a string suitable for human display that describes the warning condition. * * @return an RpcError */ public static RpcError newWarning(final ErrorType errorType, final String tag, final String message) { return new RpcErrorImpl(ErrorSeverity.WARNING, errorType, tag, message, null, null, null); }
/** * Creates an RpcError with severity WARNING for reuse. * * @param errorType the conceptual layer at which the warning occurred. * @param tag a short string that identifies the general type of warning condition. See * {@link RpcError#getTag} for a list of suggested values. * @param message a string suitable for human display that describes the warning condition. * * @return an RpcError */ public static RpcError newWarning(final ErrorType errorType, final String tag, final String message) { return new RpcErrorImpl(ErrorSeverity.WARNING, errorType, tag, message, null, null, null); }
private void addError(final ErrorSeverity severity, final ErrorType errorType, final String tag, final String message, final String applicationTag, final String info, final Throwable cause) { addError(new RpcErrorImpl(severity, errorType, tag != null ? tag : "operation-failed", message, applicationTag, info, cause)); }
private void addError(final ErrorSeverity severity, final ErrorType errorType, final String tag, final String message, final String applicationTag, final String info, final Throwable cause) { addError(new RpcErrorImpl(severity, errorType, tag != null ? tag : "operation-failed", message, applicationTag, info, cause)); }