private JournalException getUnexpectedEventInArgumentException(String name,
                                                                   String argumentType,
                                                                   String methodName,
                                                                   XMLEvent event) {
        return new JournalException("Unexpected event while processing '"
                + name + "' argument (type = '" + argumentType + "') for '"
                + methodName + "' method call: event is '" + event + "'");
    }
private JournalException getUnexpectedEventInArgumentException ( String name , String argumentType , String methodName , XMLEvent event ) { return new JournalException ( "Unexpected event while processing '" + name + "' argument (type = '" + argumentType + "') for '" + methodName + "' method call: event is '" + event + "'" ) ; }
If we encounter an unexpected event when reading the a method argument,
create an exception with all of the pertinent information.