You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Darwinism/Rpc/Exceptions/ReplyException.vb

99 lines
3.0 KiB

#Region "Microsoft.VisualBasic::457b53e16b4b468ec6e7c09322a8d467, Rpc\Exceptions\ReplyException.vb"
' Author:
'
' asuka (amethyst.asuka@gcmodeller.org)
' xie (genetics@smrucc.org)
' xieguigang (xie.guigang@live.com)
'
' Copyright (c) 2018 GPL3 Licensed
'
'
' GNU GENERAL PUBLIC LICENSE (GPL3)
'
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see <http://www.gnu.org/licenses/>.
' /********************************************************************************/
' Summaries:
' Class ReplyException
'
' Properties: ReplyBody
'
' Constructor: (+3 Overloads) Sub New
'
'
' /********************************************************************************/
#End Region
Imports System
Imports Rpc.MessageProtocol
Namespace Rpc
''' <summary>
''' Error received in response RPC message
''' </summary>
Public Class ReplyException
Inherits RpcException
''' <summary>
''' Body of a reply to an RPC call for details
''' </summary>
Private _ReplyBody As Rpc.MessageProtocol.reply_body
Public Property ReplyBody As reply_body
Get
Return _ReplyBody
End Get
Private Set(ByVal value As reply_body)
_ReplyBody = value
End Set
End Property
''' <summary>
''' Error received in response RPC message
''' </summary>
''' <paramname="replyBody"></param>
Public Sub New(ByVal replyBody As reply_body)
Me.ReplyBody = replyBody
End Sub
''' <summary>
''' Error received in response RPC message
''' </summary>
''' <paramname="replyBody"></param>
''' <paramname="message"></param>
Public Sub New(ByVal replyBody As reply_body, ByVal message As String)
MyBase.New(message)
Me.ReplyBody = replyBody
End Sub
''' <summary>
''' Error received in response RPC message
''' </summary>
''' <paramname="replyBody"></param>
''' <paramname="message"></param>
''' <paramname="innerEx"></param>
Public Sub New(ByVal replyBody As reply_body, ByVal message As String, ByVal innerEx As Exception)
MyBase.New(message, innerEx)
Me.ReplyBody = replyBody
End Sub
End Class
End Namespace