Class OpenCircuitException
This exception is thrown when the CircuitBreaker is open.
Implements
Inherited Members
Namespace: Akka.Pattern
Assembly: Akka.dll
Syntax
public class OpenCircuitException : AkkaException, ISerializable
Constructors
| Improve this Doc View SourceOpenCircuitException()
Initializes a new instance of the OpenCircuitException class.
Declaration
public OpenCircuitException()
OpenCircuitException(Exception)
Initializes a new instance of the OpenCircuitException class.
Declaration
public OpenCircuitException(Exception cause)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause | The exception that is the cause of the current exception. |
OpenCircuitException(Exception, TimeSpan)
Initializes a new instance of the OpenCircuitException class. The exception that is the cause of the current exception. Stores remaining time before attempting a reset. Zero duration means the breaker is currently in half-open state
Declaration
public OpenCircuitException(Exception cause, TimeSpan remainingDuration)
Parameters
Type | Name | Description |
---|---|---|
Exception | cause | |
TimeSpan | remainingDuration |
OpenCircuitException(SerializationInfo, StreamingContext)
Initializes a new instance of the OpenCircuitException class.
Declaration
protected OpenCircuitException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
OpenCircuitException(String)
Initializes a new instance of the OpenCircuitException class.
Declaration
public OpenCircuitException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
OpenCircuitException(String, Exception)
Initializes a new instance of the OpenCircuitException class.
Declaration
public OpenCircuitException(string message, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Exception | cause | The exception that is the cause of the current exception. |
OpenCircuitException(String, Exception, TimeSpan)
Initializes a new instance of the OpenCircuitException class.
Declaration
public OpenCircuitException(string message, Exception cause, TimeSpan remainingDuration)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
Exception | cause | The exception that is the cause of the current exception. |
TimeSpan | remainingDuration | Stores remaining time before attempting a reset. Zero duration means the breaker is currently in half-open state |
OpenCircuitException(String, TimeSpan)
Initializes a new instance of the OpenCircuitException class.
Declaration
public OpenCircuitException(string message, TimeSpan remainingDuration)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
TimeSpan | remainingDuration | Stores remaining time before attempting a reset. Zero duration means the breaker is currently in half-open state |
Properties
| Improve this Doc View SourceRemainingDuration
Declaration
public TimeSpan RemainingDuration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |