1. /*
  2. * @(#)DATA_CONVERSION.java 1.29 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * This exception is raised if an ORB cannot convert the representation
  10. * of data as marshaled into its native representation or vice-versa.
  11. * For example, DATA_CONVERSION can be raised if wide character codeset
  12. * conversion fails, or if an ORB cannot convert floating point values
  13. * between different representations.<P>
  14. * It contains a minor code, which gives more detailed information about
  15. * what caused the exception, and a completion status. It may also contain
  16. * a string describing the exception.
  17. * <P>
  18. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning
  19. * of minor codes</A> to see the minor codes for this exception.
  20. *
  21. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  22. * Java IDL exceptions</A>
  23. * @version 1.16, 09/09/97
  24. * @since JDK1.2
  25. */
  26. public final class DATA_CONVERSION extends SystemException {
  27. /**
  28. * Constructs a <code>DATA_CONVERSION</code> exception with a default minor code
  29. * of 0 and a completion state of COMPLETED_NO.
  30. */
  31. public DATA_CONVERSION() {
  32. this("");
  33. }
  34. /**
  35. * Constructs a <code>DATA_CONVERSION</code> exception with the specified detail.
  36. * @param s the String containing a detail message
  37. */
  38. public DATA_CONVERSION(String s) {
  39. this(s, 0, CompletionStatus.COMPLETED_NO);
  40. }
  41. /**
  42. * Constructs a <code>DATA_CONVERSION</code> exception with the specified
  43. * minor code and completion status.
  44. * @param minor the minor code
  45. * @param completed the completion status
  46. */
  47. public DATA_CONVERSION(int minor, CompletionStatus completed) {
  48. this("", minor, completed);
  49. }
  50. /**
  51. * Constructs a <code>DATA_CONVERSION</code> exception with the specified detail
  52. * message, minor code, and completion status.
  53. * A detail message is a String that describes this particular exception.
  54. * @param s the String containing a detail message
  55. * @param minor the minor code
  56. * @param completed the completion status
  57. */
  58. public DATA_CONVERSION(String s, int minor, CompletionStatus completed) {
  59. super(s, minor, completed);
  60. }
  61. }