commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (NET-391) CommandSupport listener should be invoked before throwing an Exception if the reply is not valid
Date Fri, 01 Apr 2011 02:06:06 GMT

     [ https://issues.apache.org/jira/browse/NET-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved NET-391.
----------------------

    Resolution: Won't Fix
      Assignee:     (was: Sebb)

All the validation exceptions that can be thrown now include the line that caused the error,
so this is not really needed.

> CommandSupport listener should be invoked before throwing an Exception if the reply is
not valid
> ------------------------------------------------------------------------------------------------
>
>                 Key: NET-391
>                 URL: https://issues.apache.org/jira/browse/NET-391
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Sebb
>            Priority: Minor
>
> The __getReply() methods check for a valid reply, and throw an exception if the reply
is unexpected.
> This is done before the CommandSupport listener is called, because the listener needs
to be passed the reply code.
> This means that the listener does not see invalid replies. 
> It might be useful to pass the reply to the listener even if the validation fails.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message