EdmiException
edm.edom3.exception
Class EdmiException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- edm.edom3.exception.EdmiException
All Implemented Interfaces:java.io.Serializable
Direct Known Subclasses:EdmiNativeException, EDMNotImplementedException, EdmUserException
public class EdmiException extends java.lang.Exception
This exception class is base for errors in the JAVA siode of the EDMI interface.Â
Copyright(C) EPM Technology AS.Version:3Author:Arne Toen, EPM Technology AS.See Also:Serialized Form
Field Summary
FieldsÂ
Modifier and Type Field and Description protected int
m_edmiError
Âprotected java.lang.String
m_edmiErrorMessage
Âprotected java.lang.String
m_location
Âprotected java.lang.String
m_message
Â
Constructor Summary
ConstructorsÂ
Constructor and Description EdmiException(EdmiException ex)
Create a new exception with the given objectEdmiException(java.lang.Object obj, java.lang.String message)
Create new EdmiExceptionEdmiException(java.lang.Object obj, java.lang.String method, java.lang.Exception rootCause)
Create a new EdmiExceptionEdmiException(java.lang.Object obj, java.lang.String method, java.lang.String message)
Create new EdmiExceptionEdmiException(java.lang.String message)
Create new EdmiException construction
Method Summary
All Methods Static Methods Instance Methods Concrete MethodsÂ
Modifier and Type Method and Description int
getErrorCode()
Get error code for this exceptionstatic java.lang.String
getErrorText(int errCode)
Get error text out of an error codejava.lang.String
getMessage()
Get complete 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 error locationvoid
setMessage(java.lang.String s)
Set error locationMethods 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
Field Detail
m_edmiError
protected int m_edmiError
m_location
protected java.lang.String m_location
m_message
protected java.lang.String m_message
m_edmiErrorMessage
protected java.lang.String m_edmiErrorMessage
Constructor Detail
EdmiException
public EdmiException(java.lang.String message)
Create new EdmiException constructionParameters:message - create a new exception with the following message
EdmiException
public EdmiException(EdmiException ex)
Create a new exception with the given objectParameters:ex - exception object
EdmiException
public EdmiException(java.lang.Object obj, java.lang.String method, java.lang.String message)
Create new EdmiExceptionParameters:obj - object where the exception took placemethod - method where the exception tool placemessage - exception message
EdmiException
public EdmiException(java.lang.Object obj, java.lang.String method, java.lang.Exception rootCause)
Create a new EdmiExceptionParameters:obj - object where the exception took placemethod - method where the exception tool placerootCause - exception message
EdmiException
public EdmiException(java.lang.Object obj, java.lang.String message)
Create new EdmiExceptionParameters:obj - object where the exception took placemessage - exception message
Method Detail
setErrorCode
public void setErrorCode(long errorCode)
Set error codeParameters:errorCode - error code for the exception
setErrorCodeMessage
public void setErrorCodeMessage(java.lang.String message)
Set error code message (alternative to above)Parameters:message - code for the exception
setContextId
public void setContextId(long id)
Set context idParameters:id - context id
setLocation
public void setLocation(java.lang.String s)
Set error locationParameters:s - location of the exception
setMessage
public void setMessage(java.lang.String s)
Set error locationParameters:s - exception message
getMessage
public java.lang.String getMessage()
Get complete error messageOverrides:getMessage in class java.lang.ThrowableReturns:exception message
getErrorCode
public int getErrorCode()
Get error code for this exceptionReturns:exception error code
getErrorText
public static java.lang.String getErrorText(int errCode)
Get error text out of an error codeParameters:errCode - error code numberReturns:error code message