Manejo de Excepciones
Manejo de Excepciones
Manejo de Excepciones
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Envío <strong>de</strong> Múltiples <strong>Excepciones</strong>Una misma función pue<strong>de</strong> lanzar más <strong>de</strong> unaexcepción. Ejemplo:void Insert( vector & array, int in<strong>de</strong>x,int value ){if( in<strong>de</strong>x < 0 || in<strong>de</strong>x >= array.size())throw RangeException("In<strong>de</strong>x out of bounds ""in Insert()");if( value < 0 )throw BadArrayValue();}array[in<strong>de</strong>x] = value;