Package org.cyclos.server.model
Class AggregatedFrameworkExceptions
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cyclos.model.CyclosException
-
- org.cyclos.model.FrameworkException
-
- org.cyclos.server.model.AggregatedFrameworkExceptions
-
- All Implemented Interfaces:
Serializable
public class AggregatedFrameworkExceptions extends FrameworkException
Aggregates otherFrameworkExceptions in 2 kinds: both as property -> exception and property -> List<Exception>. Also contains the information whether this was thrown during a validation phase or during the processing itself.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggregatedFrameworkExceptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String name, FrameworkException exception)Map<String,FrameworkException>getExceptions()Map<String,List<FrameworkException>>getIndexedExceptions()StringgetMessage()Don't delete this method.voidset(String name, FrameworkException exception)voidsetExceptions(Map<String,FrameworkException> exceptions)voidsetIndexedExceptions(Map<String,List<FrameworkException>> indexedExceptions)voidthrowIfHasExceptions()Throws this exception if there's at least one internal exceptionStringtoString()-
Methods inherited from class org.cyclos.model.CyclosException
shouldGenerateLog
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
add
public void add(String name, FrameworkException exception)
-
getExceptions
public Map<String,FrameworkException> getExceptions()
-
getIndexedExceptions
public Map<String,List<FrameworkException>> getIndexedExceptions()
-
getMessage
public String getMessage()
Description copied from class:CyclosExceptionDon't delete this method. This is taken into account by the mobile generator- Overrides:
getMessagein classCyclosException- See Also:
Throwable.getMessage()
-
set
public void set(String name, FrameworkException exception)
-
setExceptions
public void setExceptions(Map<String,FrameworkException> exceptions)
-
setIndexedExceptions
public void setIndexedExceptions(Map<String,List<FrameworkException>> indexedExceptions)
-
throwIfHasExceptions
public void throwIfHasExceptions() throws AggregatedFrameworkExceptionsThrows this exception if there's at least one internal exception- Throws:
AggregatedFrameworkExceptions
-
-