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

io.github.ishaileshmishra.model.Error Maven / Gradle / Ivy

package io.github.ishaileshmishra.model;

/**
 * 

Error class.

* * @author shaileshmishra * @version $Id: $Id */ public class Error { String errorMessage = "No Error Message Found"; int errorCode = 0; String errDetails = "No Error Details Found"; /** *

Constructor for Error.

*/ public Error() { } /** *

Constructor for Error.

* * @param errorMessage a {@link java.lang.String} object * @param errorCode a int * @param errDetails a {@link java.lang.String} object */ public Error(String errorMessage, int errorCode, String errDetails) { this.errorMessage = errorMessage; this.errorCode = errorCode; this.errDetails = errDetails; } /** *

Getter for the field errorMessage.

* * @return a {@link java.lang.String} object */ public String getErrorMessage() { return errorMessage; } /** *

Setter for the field errorMessage.

* * @param errorMessage a {@link java.lang.String} object */ protected void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** *

Getter for the field errorCode.

* * @return a int */ public int getErrorCode() { return errorCode; } /** *

Setter for the field errorCode.

* * @param errorCode a int */ protected void setErrorCode(int errorCode) { this.errorCode = errorCode; } /** *

getErrorDetail.

* * @return a {@link java.lang.String} object */ public String getErrorDetail() { return this.errDetails; } /** *

setErrorDetail.

* * @param errDetails a {@link java.lang.String} object */ protected void setErrorDetail(String errDetails) { this.errDetails = errDetails; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy