EdmiNativeException
edm.edom3.exception
Class EdmiNativeException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- edm.edom3.exception.EdmiException
- edm.edom3.exception.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
Field Summary
Fields inherited from class edm.edom3.exception.EdmiException
m_edmiError, m_edmiErrorMessage, m_location, m_message
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 Type Method and Description java.lang.String
getMessage()
Get error messagevoid
setContextId(long id)
Set context idvoid
setErrorCode(long errorCode)
Set error codevoid
setErrorCodeMessage(java.lang.String message)
Set error code message (alternative to above)void
setLocation(java.lang.String s)
Set location of the exceptionvoid
setMessage(java.lang.String s)
Set error messageMethods inherited from class edm.edom3.exception.EdmiException
getErrorCode, getErrorText
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 codeOverrides: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 idOverrides:setContextId in class EdmiExceptionParameters:id - context id
setLocation
public void setLocation(java.lang.String s)
Set location of the exceptionOverrides:setLocation in class EdmiExceptionParameters:s - location
setMessage
public void setMessage(java.lang.String s)
Set error messageOverrides:setMessage in class EdmiExceptionParameters:s - error message
getMessage
public java.lang.String getMessage()
Get error messageOverrides:getMessage in class EdmiExceptionReturns:error message