You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

POIXMLException.java 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* ====================================================================
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. package org.apache.poi;
  16. /**
  17. * Indicates a generic OOXML error.
  18. *
  19. * @author Yegor Kozlov
  20. */
  21. public final class POIXMLException extends RuntimeException{
  22. /**
  23. * Create a new <code>POIXMLException</code> with no
  24. * detail mesage.
  25. */
  26. public POIXMLException() {
  27. super();
  28. }
  29. /**
  30. * Create a new <code>POIXMLException</code> with
  31. * the <code>String</code> specified as an error message.
  32. *
  33. * @param msg The error message for the exception.
  34. */
  35. public POIXMLException(String msg) {
  36. super(msg);
  37. }
  38. /**
  39. * Create a new <code>POIXMLException</code> with
  40. * the <code>String</code> specified as an error message and the cause.
  41. *
  42. * @param msg The error message for the exception.
  43. * @param cause the cause (which is saved for later retrieval by the
  44. * {@link #getCause()} method). (A <tt>null</tt> value is
  45. * permitted, and indicates that the cause is nonexistent or
  46. * unknown.)
  47. */
  48. public POIXMLException(String msg, Throwable cause) {
  49. super(msg, cause);
  50. }
  51. /**
  52. * Create a new <code>POIXMLException</code> with
  53. * the specified cause.
  54. *
  55. * @param cause the cause (which is saved for later retrieval by the
  56. * {@link #getCause()} method). (A <tt>null</tt> value is
  57. * permitted, and indicates that the cause is nonexistent or
  58. * unknown.)
  59. */
  60. public POIXMLException(Throwable cause) {
  61. super(cause);
  62. }
  63. }