Problem2218--Write a definition for an exception class, E, that contains an error number and a string type error name.

2218: Write a definition for an exception class, E, that contains an error number and a string type error name.

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

Write a definition for an exception class, E, that contains an error number and a string type error name. Include a constructor that creates an E object and initializes both members. Provide accessors for both the message and error number.

Source/Category

51