1. /*
  2. * @(#)BadStringOperationException.java 4.16 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.management;
  8. /**
  9. * Thrown when an invalid string operation is passed
  10. * to a method for constructing a query.
  11. *
  12. * @since 1.5
  13. */
  14. public class BadStringOperationException extends Exception {
  15. /* Serial version */
  16. private static final long serialVersionUID = 7802201238441662100L;
  17. /**
  18. * @serial The description of the operation that originated this exception
  19. */
  20. private String op;
  21. /**
  22. * Constructs a <CODE>BadStringOperationException</CODE> with the specified detail
  23. * message.
  24. *
  25. * @param message the detail message.
  26. */
  27. public BadStringOperationException(String message) {
  28. this.op = message;
  29. }
  30. /**
  31. * Returns the string representing the object.
  32. */
  33. public String toString() {
  34. return "BadStringOperationException: " + op;
  35. }
  36. }