I would like someone to help me understand the process of throwing and handling exceptions based on the following questions. If I create a class pizza that has two fields and a get method for each field that throws a exception relative to each field. Do I have to create a xxxxexception class? If I do is this example close to what the class should look like:
public xxxxexception class
\\declare variables
public string name
public int number
\\constructor
public xxxxexception (string name,int number)
\\try
\\catch
\\finally
I'm really confused



LinkBack URL
About LinkBacks


