IOException.hx 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package java.io;
  2. /*
  3. * Copyright (c) 1994, 2006, Oracle and/or its affiliates. All rights reserved.
  4. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  5. *
  6. * This code is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 only, as
  8. * published by the Free Software Foundation. Oracle designates this
  9. * particular file as subject to the "Classpath" exception as provided
  10. * by Oracle in the LICENSE file that accompanied this code.
  11. *
  12. * This code is distributed in the hope that it will be useful, but WITHOUT
  13. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  15. * version 2 for more details (a copy is included in the LICENSE file that
  16. * accompanied this code).
  17. *
  18. * You should have received a copy of the GNU General Public License version
  19. * 2 along with this work; if not, write to the Free Software Foundation,
  20. * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  21. *
  22. * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  23. * or visit www.oracle.com if you need additional information or have any
  24. * questions.
  25. */
  26. /**
  27. * Signals that an I/O exception of some sort has occurred. This
  28. * class is the general class of exceptions produced by failed or
  29. * interrupted I/O operations.
  30. *
  31. * @author unascribed
  32. * @see java.io.InputStream
  33. * @see java.io.OutputStream
  34. * @since JDK1.0
  35. */
  36. @:require(java0) extern class IOException extends java.lang.Exception
  37. {
  38. /**
  39. * Constructs an {@code IOException} with {@code null}
  40. * as its error detail message.
  41. */
  42. @:overload public function new() : Void;
  43. /**
  44. * Constructs an {@code IOException} with the specified detail message.
  45. *
  46. * @param message
  47. * The detail message (which is saved for later retrieval
  48. * by the {@link #getMessage()} method)
  49. */
  50. @:overload public function new(message : String) : Void;
  51. /**
  52. * Constructs an {@code IOException} with the specified detail message
  53. * and cause.
  54. *
  55. * <p> Note that the detail message associated with {@code cause} is
  56. * <i>not</i> automatically incorporated into this exception's detail
  57. * message.
  58. *
  59. * @param message
  60. * The detail message (which is saved for later retrieval
  61. * by the {@link #getMessage()} method)
  62. *
  63. * @param cause
  64. * The cause (which is saved for later retrieval by the
  65. * {@link #getCause()} method). (A null value is permitted,
  66. * and indicates that the cause is nonexistent or unknown.)
  67. *
  68. * @since 1.6
  69. */
  70. @:require(java6) @:overload public function new(message : String, cause : java.lang.Throwable) : Void;
  71. /**
  72. * Constructs an {@code IOException} with the specified cause and a
  73. * detail message of {@code (cause==null ? null : cause.toString())}
  74. * (which typically contains the class and detail message of {@code cause}).
  75. * This constructor is useful for IO exceptions that are little more
  76. * than wrappers for other throwables.
  77. *
  78. * @param cause
  79. * The cause (which is saved for later retrieval by the
  80. * {@link #getCause()} method). (A null value is permitted,
  81. * and indicates that the cause is nonexistent or unknown.)
  82. *
  83. * @since 1.6
  84. */
  85. @:require(java6) @:overload public function new(cause : java.lang.Throwable) : Void;
  86. }