I have a function using `try-catch`. so I want use and another class to print out different kind of messages. What should I do? 

I use namespace `std`. I'm new at this an not familiar with using namespace `std`. Please guide me thanks.

```
SparseException::SparseException ()
{ }

SparseException::SparseException (char *message)
{ }

void SparseException::printMessage () const
{ 
   // ... 
}

try
{
    //did some stuffs here.
}
catch (exception e)
{
    char *message = "Sparse Exception caught: Element not found, delete fail";
    SparseException s (message);
    s.printMessage();
}

```