need2progm
Programmer
In vb
I have written custom exception classes that inherit my custom exception obj ...
Public MustInherit class JobException
Inherits customException
'constructor
Public sub new(ExceptionID, Message , AppMessage, User , JOB)
then I have a class....
Public Class InvalidJobTypeJOB
Inherits JobException
'constructor
public sub new
(JobTypeJOB as JobTypeJOB, AppMessage as string , CurrentUser as User)
MyBase.new( ErrorCode.InvaidJOB , "Invalid JOB" ,
AppMessage , Currentuser, JobTypeJOB.JOB )
My problem is JOB can be null (it may not exsist yet)
... It is bad when an exception throws an exception ... null pointer
Now c# has a condional operator I could use but I have 900 lines of vb code here. what a let down
Thoughts?
I have written custom exception classes that inherit my custom exception obj ...
Public MustInherit class JobException
Inherits customException
'constructor
Public sub new(ExceptionID, Message , AppMessage, User , JOB)
then I have a class....
Public Class InvalidJobTypeJOB
Inherits JobException
'constructor
public sub new
(JobTypeJOB as JobTypeJOB, AppMessage as string , CurrentUser as User)
MyBase.new( ErrorCode.InvaidJOB , "Invalid JOB" ,
AppMessage , Currentuser, JobTypeJOB.JOB )
My problem is JOB can be null (it may not exsist yet)
... It is bad when an exception throws an exception ... null pointer
Now c# has a condional operator I could use but I have 900 lines of vb code here. what a let down
Thoughts?