Catching the actual type of Exception thrown is one option
try
{
currency = (serviceCountry.createCurrencyTicket( cr, null ));
}catch(MyCustomException ex)
{
if( ex.getStatus() == 2 )
currency = "Oh Nos";
else if( ex.getStatus() == 0 )
currency = "Ehh";
}catch(Exception e)
{
currency = "SuperBad";
}
Another, although tedious option, would be to check the type of the thrown Exception
try
{
currency = (serviceCountry.createCurrencyTicket( cr, null ));
}catch(Exception e)
{
if( e instanceof MyCustomException )
{
MyCustomException customEx = (MyCustomException)e;
if( customEx.getStatus() == 2 )
currency = "Oh Nos";
else if( customEx.getStatus() == 0 )
currency = "Ehh";
}
else
currency = "SuperBad";
}