1. /*
  2. * @(#)MinorCodes.java 1.37 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. /*
  8. * Licensed Materials - Property of IBM
  9. * RMI-IIOP v1.0
  10. * Copyright IBM Corp. 1998 1999 All Rights Reserved
  11. *
  12. * US Government Users Restricted Rights - Use, duplication or
  13. * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  14. */
  15. package com.sun.corba.se.internal.util;
  16. import com.sun.corba.se.internal.util.SUNVMCID ;
  17. import org.omg.CORBA.OMGVMCID;
  18. /** Class for minor codes used in the util and io packages.
  19. * Note that all minor codes here must be based on either OMGVMCID,
  20. * for standardized minor codes, or on SUNVMCID, for Sun specific minor
  21. * codes. Also, the Sun specific minor codes must be in the range
  22. * [ SUNVMCID, SUNVMCID+199 ].
  23. */
  24. public final class MinorCodes {
  25. //
  26. // BAD_PARAM
  27. //
  28. // This code is used in com.sun.rmi.util.Utility.throwNotSerializableForCorba().
  29. // The CORBA equivalent of a java.io.NotSerializableException.
  30. //
  31. // It's used in the io and util packages, as well as our
  32. // javax.rmi.CORBA.Util delegate.
  33. //
  34. // This value comes from Java to IDL ptc-00-01-06 1.4.8.
  35. //
  36. // Warning: Pre-Merlin Sun ORBs threw BAD_PARAM with
  37. // SUNVMCID.value + 1 for this case!
  38. public static final int NOT_SERIALIZABLE = OMGVMCID.value + 6;
  39. // This Minor code is used in loadStubAndUpdateCache method to
  40. // report error when there is an exception in tie._this_object() method
  41. public static final int NO_POA = SUNVMCID.value + 2;
  42. //
  43. // NO_IMPLEMENT exception minor codes
  44. //
  45. // from FVDCodeBaseImpl
  46. public static final int MISSING_LOCAL_VALUE_IMPL = OMGVMCID.value + 1;
  47. public static final int INCOMPATIBLE_VALUE_IMPL = OMGVMCID.value + 2;
  48. //
  49. // DATA_CONVERSION exception minor codes
  50. //
  51. public static final int BAD_HEX_DIGIT = SUNVMCID.value + 1 ;
  52. //
  53. // MARSHAL exception minor codes
  54. //
  55. public static final int UNABLE_LOCATE_VALUE_FACTORY = OMGVMCID.value + 1;
  56. public static final int UNABLE_LOCATE_VALUE_HELPER = SUNVMCID.value + 2;
  57. public static final int INVALID_INDIRECTION = SUNVMCID.value + 3;
  58. //
  59. // UNKNOWN exception minor codes
  60. //
  61. public static final int UNKNOWN_SYSEX = SUNVMCID.value + 1 ;
  62. }