Asterisk-Java

org.asteriskjava.fastagi
Class InvalidCommandSyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.asteriskjava.fastagi.AgiException
              extended by org.asteriskjava.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 938 2007-12-31 03:23:38Z srt $
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.

Asterisk-Java

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