Class OneM2MException

  • All Implemented Interfaces:
    java.io.Serializable

    public class OneM2MException
    extends java.io.IOException
    General Exception for oneM2M.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OneM2MException​(java.lang.String message, int errorCode)
      Construct a OneM2MException with a message and an error code.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()
      Return the error code for the exception.
      • 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 Detail

      • OneM2MException

        public OneM2MException​(java.lang.String message,
                               int errorCode)
        Construct a OneM2MException with a message and an error code.
        Parameters:
        message - The exception message.
        errorCode - The exception error code.
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Return the error code for the exception.
        Returns:
        The error code for the exception.