Package se.sics.kompics
Class Fault
java.lang.Object
se.sics.kompics.Fault
- All Implemented Interfaces:
Cloneable
,KompicsEvent
public class Fault extends Object implements KompicsEvent
The
Fault
class.- Author:
- Cosmin Arad <[email protected]>, Jim Dowling <[email protected]>, Lars Kroll <[email protected]>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Fault.ResolveAction
The events that can be taken to resolve a fault. -
Constructor Summary
Constructors Constructor Description Fault(Throwable throwable, ComponentCore source, KompicsEvent event)
Instantiates a new fault. -
Method Summary
Modifier and Type Method Description Throwable
getCause()
Get the exception that caused the fault.KompicsEvent
getEvent()
The event that was being handled when the fault occurred.ComponentDefinition
getSource()
Get the component where the fault originated.Component
getSourceCore()
Get the runtime core instance of the component where the fault originated.String
toString()
-
Constructor Details
-
Fault
Instantiates a new fault.- Parameters:
throwable
- the exception that caused the faultsource
- the component where the fault originatedevent
- the event that caused the fault
-
-
Method Details
-
getSource
Get the component where the fault originated.- Returns:
- the origin component
-
getSourceCore
Get the runtime core instance of the component where the fault originated.- Returns:
- the origin runtime core
-
getCause
Get the exception that caused the fault.- Returns:
- the original exception
-
getEvent
The event that was being handled when the fault occurred.- Returns:
- the original event
-
toString
-