|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.jmcda.persist.xmcda2.utils.XMCDAErrorsManagerForwarder
public class XMCDAErrorsManagerForwarder
| Constructor Summary | |
|---|---|
XMCDAErrorsManagerForwarder()
Forwards to a new XMCDAErrorsManager which uses the default strategy XMCDAErrorsManager.ErrorManagement.THROW. |
|
XMCDAErrorsManagerForwarder(XMCDAErrorsManager errorsManager)
Forwards to the given object. |
|
| Method Summary | |
|---|---|
void |
error(String error)
Throws an exception with the given error message if this object follows a XMCDAErrorsManager.ErrorManagement.THROW strategy
(the default); otherwise, logs the error or collects the error. |
List<String> |
getErrors()
Retrieves a read-only view to the list of errors collected in this object. |
XMCDAErrorsManager.ErrorManagement |
getStrategy()
Retrieves the strategy this object currently follows. |
void |
setStrategy(XMCDAErrorsManager.ErrorManagement strategy)
Sets the strategy this object will follow. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMCDAErrorsManagerForwarder()
XMCDAErrorsManager which uses the default strategy XMCDAErrorsManager.ErrorManagement.THROW.
public XMCDAErrorsManagerForwarder(XMCDAErrorsManager errorsManager)
errorsManager - not null.| Method Detail |
|---|
public void error(String error)
throws InvalidInputException
XMCDAErrorsManager.ErrorManagement.THROW strategy
(the default); otherwise, logs the error or collects the error.
error - null or empty for no error message.
InvalidInputException - if the strategy is XMCDAErrorsManager.ErrorManagement.THROW.#setStrategy(ErrorManagement)public XMCDAErrorsManager.ErrorManagement getStrategy()
null.public void setStrategy(XMCDAErrorsManager.ErrorManagement strategy)
strategy - not null.public List<String> getErrors()
XMCDAErrorsManager.ErrorManagement.COLLECT strategy, and it is emptied if the strategy is changed.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||