MiddlewareException Constructor
- Last UpdatedMar 17, 2026
- 1 minute read
MiddlewareException defines an exception used by the Middleware Server and Proxy components to throw various exception conditions to the caller. This can be used in places where a specific .Net Exception is not available or when you want to to indicate that the exception occured in Middleware oriented code. This class's primary purpose is to consume other thrown Exceptions and convert them (recursively) to MiddlewareExceptions so they can be serialized across the wire to the Middleware Proxy.
| Overload | Description |
|---|---|
| MiddlewareException Constructor() | Constructor that creates a default MiddlewareException of type MiddlewareExceptionType.General |
| MiddlewareException Constructor(String,MiddlewareExceptionType) | Constructor which creates a MiddlewareException of the MiddlewareException type passed in |
| MiddlewareException Constructor(String,MiddlewareExceptionType,Exception) | Constructor which creates a MiddlewareException of the MiddlewareException type passed in |
| MiddlewareException Constructor(Exception,MiddlewareExceptionType) | Constructor which creates a MiddlewareException of the MiddlewareException type passed in. The new MiddlewareException consumes the passed Exception. It basically copies all the information it can. |
| MiddlewareException Constructor(SerializationInfo,StreamingContext) | Constructor used by the Deserialization Process |