We can throw exception in catch statement block and change the exception type.
try
{
...
}
catch (FormatException ex)
{
throw new XmlException ("Invalid DateTime", ex);
}
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |