Exceptions

Create custom exception class

<Serializable()> Public Class BLException
  Inherits Exception

  Public Sub New()
    MyBase.New()
  End Sub
  Public Sub New(ByVal description As String)
    MyBase.New(description)
  End Sub
  Public Sub New(ByVal description As String, ByVal ex As Exception)
    MyBase.New(description, ex)
  End Sub
  Protected Sub New(ByVal serInfo As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
    MyBase.New(serInfo, context)
  End Sub

End Class
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License