org.asteriskjava.fastagi
Class InvalidCommandSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.asteriskjava.fastagi.AgiException
org.asteriskjava.fastagi.InvalidCommandSyntaxException
- All Implemented Interfaces:
- 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
|
Method Summary |
String |
getSynopsis()
Returns the synopsis of the command that was called with invalid syntax. |
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 |
InvalidCommandSyntaxException
public InvalidCommandSyntaxException(String synopsis,
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.
getSynopsis
public 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 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-2010 Stefan Reuter. All Rights Reserved.