public class IfsExceptionResolver extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT |
protected PropertyBundle |
m_bundle
the error map propertybundle
|
protected int[] |
m_errorMap
the error map
|
protected LibrarySession |
m_session
the session
|
static String |
PROPERTY_BUNDLE_NAME |
Constructor and Description |
---|
IfsExceptionResolver(LibrarySession session)
Constructs an ExceptionResolver loading default mapping
|
IfsExceptionResolver(LibrarySession session,
String errorMap)
Constructs an ExceptionResolver loading mapping errorMap
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage(Throwable e)
Takes an Exception and returns a message.
|
IfsException |
getMostRelevantException(IfsException e)
returns the most important Exception in the IfsException stack
as determined by the loaded error map
|
void |
loadMapping(String errorMap)
Loads a mapping, if IfsException is thrown internal errorMap not updated
|
public static final String DEFAULT
public static final String PROPERTY_BUNDLE_NAME
protected PropertyBundle m_bundle
protected int[] m_errorMap
protected LibrarySession m_session
public IfsExceptionResolver(LibrarySession session) throws IfsException
IfsException
public IfsExceptionResolver(LibrarySession session, String errorMap) throws IfsException
IfsException
public void loadMapping(String errorMap) throws IfsException
IfsException
public String getMessage(Throwable e)
public IfsException getMostRelevantException(IfsException e)
Copyright © 2023. All rights reserved.