Package net.sf.jasperreports.engine
Class JRException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.sf.jasperreports.engine.JRException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataSnapshotException
,ExportInterruptedException
,JRExpressionEvalException
,JRInteractiveException
,JRScriptletException
,JRValidationException
,NoRecordAtIndexException
public class JRException extends Exception
General purpose JasperReports exception.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_PREFIX
static String
EXCEPTION_MESSAGES_BUNDLE
-
Constructor Summary
Constructors Constructor Description JRException(String message)
JRException(String messageKey, Object... args)
JRException(String messageKey, Object[] args, Throwable t)
JRException(String message, Throwable t)
JRException(Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getArgs()
String
getMessage()
String
getMessage(JasperReportsContext jasperReportsContext, Locale locale)
protected String
getMessageBundleName()
String
getMessageKey()
protected String
getMessageKeyPrefix()
protected String
resolveMessage(JasperReportsContext jasperReportsContext, Locale locale)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
EXCEPTION_MESSAGES_BUNDLE
public static final String EXCEPTION_MESSAGES_BUNDLE
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_PREFIX
public static final String EXCEPTION_MESSAGE_KEY_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMessageKey
public String getMessageKey()
-
getArgs
public Object[] getArgs()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getMessage
public String getMessage(JasperReportsContext jasperReportsContext, Locale locale)
-
resolveMessage
protected String resolveMessage(JasperReportsContext jasperReportsContext, Locale locale)
-
getMessageBundleName
protected String getMessageBundleName()
-
getMessageKeyPrefix
protected String getMessageKeyPrefix()
-
-