net.sf.asterisk.fastagi
Class InvalidCommandSyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.asterisk.fastagi.AGIException
              extended by net.sf.asterisk.fastagi.InvalidCommandSyntaxException
All Implemented Interfaces:
java.io.Serializable

public class InvalidCommandSyntaxException
extends AGIException

An InvalidCommandSyntaxException is thrown when the reader receives a reply with status code 520.

Version:
$Id: InvalidCommandSyntaxException.java,v 1.1 2005/03/11 19:34:55 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
InvalidCommandSyntaxException(java.lang.String synopsis, java.lang.String usage)
          Creates a new InvalidCommandSyntaxException with the given synopsis and usage.
 
Method Summary
 java.lang.String getSynopsis()
          Returns the synopsis of the command that was called with invalid syntax.
 java.lang.String getUsage()
          Returns a description of the command that was called with invalid syntax.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidCommandSyntaxException

public InvalidCommandSyntaxException(java.lang.String synopsis,
                                     java.lang.String usage)
Creates a new InvalidCommandSyntaxException with the given synopsis and usage.

Parameters:
synopsis - the synopsis of the command.
usage - the usage of the command.
Method Detail

getSynopsis

public java.lang.String getSynopsis()
Returns the synopsis of the command that was called with invalid syntax.

Returns:
the synopsis of the command that was called with invalid syntax.

getUsage

public java.lang.String getUsage()
Returns a description of the command that was called with invalid syntax.

Returns:
a description of the command that was called with invalid syntax.


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.