EdmiNativeException


edm.edom3.exception

Class EdmiNativeException

  • All Implemented Interfaces:java.io.Serializable



    public class EdmiNativeException
    extends EdmiException

    This exception class catches most errors in the native interface. 
    Copyright(C) EPM Technology AS.

    Version:7 October 1998.Author:Arne Toen, EPM Technology AS.See Also:Serialized Form

    • Constructor Summary

      Constructors 

      Constructor and Description
      EdmiNativeException()
      Create a new EdmiNativeException.
      EdmiNativeException(long errorCode)
      The EdmiNativeException is thrown from inside the JNI / EDMI.
      EdmiNativeException(java.lang.String s)
      The EdmiNativeException is thrown from inside the JNI / EDMI.
    • Method Summary

      All Methods Instance Methods Concrete Methods 

      Modifier and TypeMethod and Description
      java.lang.StringgetMessage()
      Get error message
      voidsetContextId(long id)
      Set context id
      voidsetErrorCode(long errorCode)
      Set error code
      voidsetErrorCodeMessage(java.lang.String message)
      Set error code message (alternative to above)
      voidsetLocation(java.lang.String s)
      Set location of the exception
      voidsetMessage(java.lang.String s)
      Set error message
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • EdmiNativeException

        public EdmiNativeException()

        Create a new EdmiNativeException. Called from JNI layer.
      • EdmiNativeException

        public EdmiNativeException(java.lang.String s)

        The EdmiNativeException is thrown from inside the JNI / EDMI. In most cases it only wraps an underlying error code from the EDMI layer.

        Parameters:s - exception message

      • EdmiNativeException

        public EdmiNativeException(long errorCode)

        The EdmiNativeException is thrown from inside the JNI / EDMI. In most cases it only wraps an underlying error code from the EDMI layer.

        Parameters:errorCode - exception error code

    • Method Detail

      • setErrorCode

        public void setErrorCode(long errorCode)

        Set error code

        Overrides:setErrorCode in class EdmiExceptionParameters:errorCode - error code number

      • setErrorCodeMessage

        public void setErrorCodeMessage(java.lang.String message)

        Set error code message (alternative to above)

        Overrides:setErrorCodeMessage in class EdmiExceptionParameters:message - error message

      • setContextId

        public void setContextId(long id)

        Set context id

        Overrides:setContextId in class EdmiExceptionParameters:id - context id

      • setLocation

        public void setLocation(java.lang.String s)

        Set location of the exception

        Overrides:setLocation in class EdmiExceptionParameters:s - location

      • setMessage

        public void setMessage(java.lang.String s)

        Set error message

        Overrides:setMessage in class EdmiExceptionParameters:s - error message

      • getMessage

        public java.lang.String getMessage()

        Get error message

        Overrides:getMessage in class EdmiExceptionReturns:error message