📄 upnpactioninvalidargumentsexception.java
字号:
package no.auc.one.portableplayer.communication.upnphosting;
/**
* Invalid arguments.
*
* Includes the following errors:
* <ul type="square">
* <li>Not enough in arguments</li>
* <li>Too many in arguments
* <li>No in argument by that name</li>
* <li>one or more in arguments are of the wrong data type</li>
* </ul>
*/
public final class UPnPActionInvalidArgumentsException extends
UPnPActionInvocationException
{
private int code;
private String description;
//
// Constants to describe what is wrong with the arguments.
//
/**
* Not enough arguments.
*/
public final static int ERROR_NOT_ENOUGH_ARGUMENTS = 0;
/**
* Too many arguments.
*/
public final static int ERROR_TOO_MANY_ARGUMENTS = 1;
/**
* Unknown in argument.
*/
public final static int ERROR_UNKNOWN_IN_ARGUMENT = 2;
/**
* Wrong datatype.
*/
public final static int ERROR_WRONG_DATATYPE = 3;
/**
* @param error ERROR constant specifying which specifies what is wrong
* with the arguments.
* @param message Gives more details about the exception, such as which
* argument is wrong.
*/
public UPnPActionInvalidArgumentsException(int error, String message) {
super(new no.auc.one.portableplayer.communication.soap.SoapFault(
"http://schemas.xmlsoap.org/soap/envelope/",
"402",
"Invalid argument(s)"));
code = error;
description = message;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -