public void handleException(Exception e,int option){
  if (!getOptionIsSupported(option)) {
    String message=e.getMessage();
    if (message != null && (message.equals(osDoesNotSupportOperationString) || message.equals(osDoesNotSupportOptionString) || message.equals(osDoesNotSupportOptionArgumentString))) {
    }
 else {
      fail("Threw \"" + e + "\" instead of correct exception for unsupported socket option: "+ getSocketOptionString(option));
    }
  }
 else {
    fail("Exception during test : " + e.getMessage());
  }
}

public void handleException ( Exception e , int option ) { if ( ! getOptionIsSupported ( option ) ) { String message = e . getMessage ( ) ; if ( message != null && ( message . equals ( osDoesNotSupportOperationString ) || message . equals ( osDoesNotSupportOptionString ) || message . equals ( osDoesNotSupportOptionArgumentString ) ) ) { } else { fail ( "Threw \"" + e + "\" instead of correct exception for unsupported socket option: " + getSocketOptionString ( option ) ) ; } } else { fail ( "Exception during test : " + e . getMessage ( ) ) ; } }
if the exception is " socket does not support the operation " exception and it is expected on the current platform , do nothing . otherwise , fail the test .
