All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jdroid.java.exception.ErrorCode Maven / Gradle / Ivy

The newest version!
package com.jdroid.java.exception;

/**
 * Common interface for all the possible errors of the application
 */
public interface ErrorCode {
	
	/**
	 * @param errorCodeParameters The parameters for this {@link ErrorCode}'s message.
	 * @return A new {@link ErrorCodeException} with this {@link ErrorCode}
	 */
	public ErrorCodeException newErrorCodeException(Object... errorCodeParameters);
	
	public ErrorCodeException newErrorCodeException(Throwable throwable);
	
	/**
	 * @return A new {@link ErrorCodeException}
	 */
	public ErrorCodeException newErrorCodeException();
	
	/**
	 * @param message The message
	 * @return A new {@link ErrorCodeException}
	 */
	public ErrorCodeException newErrorCodeException(String message);
	
	/**
	 * @return The title resource id
	 */
	public Integer getTitleResId();
	
	/**
	 * @return The description resource id
	 */
	public Integer getDescriptionResId();
	
	/**
	 * @return The status code
	 */
	public String getStatusCode();
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy