try { throw data_value; } catch (ExceptionType1 name) { //exception code } catch (ExceptionType2 name) { //exception code }