home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / j2sdk / files / linux / j2sdklin.bin / jdk1.3.1 / include-old / common_exceptions.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-06  |  2.5 KB  |  61 lines

  1. /*
  2.  * @(#)common_exceptions.h    1.18 00/02/02
  3.  *
  4.  * Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the proprietary information of Sun Microsystems, Inc.  
  7.  * Use is subject to license terms.
  8.  * 
  9.  */
  10.  
  11. /*
  12.  * Common exceptions thrown from within JVM.  Add more here as you
  13.  * find uses of SignalError. (Help the next guy avoid typos.)
  14.  *
  15.  * NATIVE LIBRARIES MUST NOT USE THESE ROUTINES.
  16.  */
  17.  
  18. #ifndef _JAVASOFT_COMMON_EXCEPTIONS_H_
  19. #define _JAVASOFT_COMMON_EXCEPTIONS_H_
  20.  
  21. /* JAVAPKG */
  22. extern void ThrowArrayIndexOutOfBoundsException(ExecEnv *, char *);
  23. extern void ThrowClassNotFoundException(ExecEnv *, char *);
  24. extern void ThrowIllegalAccessError(ExecEnv *, char *);
  25. extern void ThrowIllegalAccessException(ExecEnv *, char *);
  26. extern void ThrowIllegalArgumentException(ExecEnv *, char *);
  27. extern void ThrowInstantiationException(ExecEnv *, char *);
  28. extern void ThrowInternalError(ExecEnv *, char *);
  29. extern void ThrowInterruptedException(ExecEnv *, char *);
  30. extern void ThrowNoClassDefFoundError(ExecEnv *, char *);
  31. extern void ThrowNoSuchFieldError(ExecEnv *, char *);
  32. extern void ThrowNoSuchFieldException(ExecEnv *, char *);
  33. extern void ThrowNoSuchMethodError(ExecEnv *, char *);
  34. extern void ThrowNoSuchMethodException(ExecEnv *, char *);
  35. extern void ThrowNullPointerException(ExecEnv *, char *);
  36. extern void ThrowNumberFormatException(ExecEnv *, char *);
  37. extern void ThrowNegativeArraySizeException(ExecEnv *, char *);
  38. extern void ThrowOutOfMemoryError(ExecEnv *, char *);
  39. extern void ThrowStringIndexOutOfBoundsException(ExecEnv *, char *);
  40.  
  41. extern void ThrowAbstractMethodError(ExecEnv *, char *);
  42. extern void ThrowVerifyError(ExecEnv *, char *);
  43. extern void ThrowIncompatibleClassChangeError(ExecEnv *, char *);
  44. extern void ThrowClassCircularityError(ExecEnv *, char *);
  45. extern void ThrowClassFormatError(ExecEnv *, char *);
  46. extern void ThrowUnsupportedClassVersionError(ExecEnv *, char *);
  47. extern void ThrowUnsatisfiedLinkError(ExecEnv *, char *);
  48. extern void ThrowStackOverflowError(ExecEnv *, char *);
  49. extern void ThrowArrayStoreException(ExecEnv *, char *);
  50. extern void ThrowIllegalMonitorStateException(ExecEnv *, char *);
  51. extern void ThrowIllegalStateException(ExecEnv *, char *);
  52. extern void ThrowCloneNotSupportedException(ExecEnv *, char *);
  53. extern void ThrowIllegalThreadStateException(ExecEnv *, char *);
  54. extern void ThrowClassCastException(ExecEnv *, char *);
  55.  
  56. /* JAVAIOPKG */
  57. extern void ThrowIOException(ExecEnv *, char *);
  58. extern void ThrowInterruptedIOException(ExecEnv *, char *);
  59.  
  60. #endif /* !_JAVASOFT_COMMON_EXCEPTIONS_H_ */
  61.