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
| Edit this page 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 stateDeclaration
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
| Edit this page View SourceRemainingDuration
Declaration
public TimeSpan RemainingDuration { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Methods
| Edit this page View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | |
| StreamingContext | context |
Edit this page