Array array = new Array(); try { Object object = array.front(); } catch ( InvalidOperationException exception ) { System.out.println( "Caught " + exception ); }