Package org.compiere.util
Class ArhRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.adempiere.exceptions.AdempiereException
-
- org.compiere.util.ArhRuntimeException
-
- All Implemented Interfaces:
Serializable
public class ArhRuntimeException extends AdempiereException
Arhipac Runtime exception- Author:
- Teo_Sarca, SC ARHIPAC SERVICE SRL
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArhRuntimeException()
Default Constructor (logger error will be used as message)ArhRuntimeException(String message)
ConstructorArhRuntimeException(String message, Throwable cause)
ArhRuntimeException(Throwable cause)
ArhRuntimeException(Properties ctx, String message)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArhRuntimeException
addField(String fieldName, Object value)
ArhRuntimeException
addInfo(String name)
ArhRuntimeException
addInfo(String name, boolean value)
ArhRuntimeException
addInfo(String name, Object value)
String
getLocalizedMessage()
boolean
hasInfo()
void
saveError(CLogger log)
Save errorString
toString()
-
Methods inherited from class org.adempiere.exceptions.AdempiereException
getCtx
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ArhRuntimeException
public ArhRuntimeException()
Default Constructor (logger error will be used as message)
-
ArhRuntimeException
public ArhRuntimeException(String message)
Constructor- Parameters:
message
- error message or "" if you don't need a message
-
ArhRuntimeException
public ArhRuntimeException(Properties ctx, String message)
Constructor- Parameters:
ctx
-message
-
-
ArhRuntimeException
public ArhRuntimeException(Throwable cause)
- Parameters:
cause
-
-
-
Method Detail
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classAdempiereException
-
saveError
public void saveError(CLogger log)
Save error
-
addInfo
public ArhRuntimeException addInfo(String name, boolean value)
-
addInfo
public ArhRuntimeException addInfo(String name)
-
addInfo
public ArhRuntimeException addInfo(String name, Object value)
-
addField
public ArhRuntimeException addField(String fieldName, Object value)
-
hasInfo
public boolean hasInfo()
-
-