/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package javax.management;
/**
* Thrown when an invalid string operation is passed to a query construction
* method.
*
* @author Adrian Brock
* @version $Revision: 1.2.8.1 $
*
*
Revisions:
*
20020711 Adrian Brock:
*
*/
public class BadStringOperationException
extends Exception
{
// Attributes ----------------------------------------------------
/**
* The operation
*/
private String op;
// Static --------------------------------------------------------
// Constructors --------------------------------------------------
/**
* Construct a new BadStringOperationException with the given operation.
*
* @param op the invalid operation.
*/
public BadStringOperationException(String op)
{
super(op);
this.op = op;
}
// Public --------------------------------------------------------
// Exception Overrides -------------------------------------------
/**
* Returns a string representing the error.
*
* @return the error string.
*/
public String toString()
{
return "Bad string operation: " + op;
}
}