Wednesday, June 28, 2006

General Error Class for ASP.NET

#Region "NameSpace"

Imports System

#End Region

Namespace Abc.Error

Public Class CustomError

#Region "Declartion"

Private Shared _errorno As Integer

Private Shared _errorname As Integer

Private Shared _errordescription As String

Private Shared _errorsource As String

#End Region

#Region "Properties"

Public Shared Property ErroNo() As Integer

Get

ErroNo = _errorno

End Get

Set(ByVal Value As Integer)

_errorno = Value

End Set

End Property

Public Shared Property ErrorName() As String

Get

ErrorName = _errorname

End Get

Set(ByVal Value As String)

_errorname = Value

End Set

End Property

Public Shared Property ErrorDescription() As String

Get

ErrorDescription = _errordescription

End Get

Set(ByVal Value As String)

_errordescription = Value

End Set

End Property

Public Shared Property ErrorSource() As String

Get

ErrorSource = _errorsource

End Get

Set(ByVal Value As String)

_errorsource = Value

End Set

End Property




#End Region

#Region "Constructors"

#End Region


#Region "Methods"

#End Region
Share:

0 comments:

Post a Comment

Your feedback is very important to me. Please provide your feedback via putting comments.

Search This Blog
Loading...
About Me
My Photo

Full Stack Developer,Blogger,Microsoft Mvp, Mentor, Life long learner, 10+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC,Web Forms,C#,AngularJs,Golang
Mvp profile
Subscribe to my blog

Enter your email address:

Follow us on facebook
Blog Archive
Total Pageviews