Class GeneralException

java.lang.Object
java.lang.Throwable
java.lang.Exception
mx.com.sw.exceptions.GeneralException
All Implemented Interfaces:
java.io.Serializable

public class GeneralException
extends java.lang.Exception
GeneralException Está exception ocurre se encuentra algún problema en la comunicación con los servicios.
Since:
2020-08-01
Version:
0.0.0.1
Author:
Juan Gamez
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    GeneralException​(int httpStatusCode, java.lang.String errorMSG)
    Constructor de la clase.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getErrorMessage()
    Obtiene el mensaje de error.
    int getHttpStatusCode()
    Obtiene el httpStatusCode que se tiene configurado.
    void setErrorMessage​(java.lang.String errorMSG)
    Configura el mensaje de error.
    void setHttpStatusCode​(int httpStatusCode)
    Configura el httpStatusCode.

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GeneralException

      public GeneralException​(int httpStatusCode, java.lang.String errorMSG)
      Constructor de la clase.
      Parameters:
      httpStatusCode - http status code.
      errorMSG - mensaje de error.
  • Method Details

    • getHttpStatusCode

      public int getHttpStatusCode()
      Obtiene el httpStatusCode que se tiene configurado.
      Returns:
      httpStatusCode
    • setHttpStatusCode

      public void setHttpStatusCode​(int httpStatusCode)
      Configura el httpStatusCode.
      Parameters:
      httpStatusCode - http status code.
    • getErrorMessage

      public java.lang.String getErrorMessage()
      Obtiene el mensaje de error.
      Returns:
      errorMessage
    • setErrorMessage

      public void setErrorMessage​(java.lang.String errorMSG)
      Configura el mensaje de error.
      Parameters:
      errorMSG - mensaje de error.