docs: public static void throwException(Method method, InputStream in) throws Throwable {
          // read the exception id
          final String id = in.read_string();
  
          // get the class name from the id
          if (!id.startsWith("IDL:")) {
              Tr.error(tc, "Malformed exception id: " + id);
              return;
          }
  
          Class<?>[] exceptionTypes = method.getExceptionTypes();
          for (int i = 0; i < exceptionTypes.length; i++) {
              Class<?> exceptionType = exceptionTypes[i];
  
              String exceptionId = getExceptionId(exceptionType);
              if (id.equals(exceptionId)) {
                  throw (Throwable) in.read_value(exceptionType);
              }
          }
          throw new UnexpectedException(id);
      }