/*
* @(#)BadStringOperationException.java 4.16 03/12/19
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package javax.management;
/**
* Thrown when an invalid string operation is passed
* to a method for constructing a query.
*
* @since 1.5
*/
public class BadStringOperationException extends Exception {
/* Serial version */
private static final long serialVersionUID = 7802201238441662100L;
/**
* @serial The description of the operation that originated this exception
*/
private String op;
/**
* Constructs a <CODE>BadStringOperationException</CODE> with the specified detail
* message.
*
* @param message the detail message.
*/
public BadStringOperationException(String message) {
this.op = message;
}
/**
* Returns the string representing the object.
*/
public String toString() {
return "BadStringOperationException: " + op;
}
}
|