MiddlewareException Constructor(Exception,MiddlewareExceptionType)
- Last UpdatedNov 06, 2025
- 1 minute read
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.
'Declaration
Public Function New( _
ByVal ex As Exception, _
ByVal exType As MiddlewareExceptionType _
)
'Usage
Dim ex As Exception
Dim exType As MiddlewareExceptionType
Dim instance As New MiddlewareException(ex, exType)
public MiddlewareException(
Exception ex,
MiddlewareExceptionType exType
)
Parameters
- ex
- The source Exception that the new MiddlewareException tries to copy
- exType
- The specialized type of the Exception