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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.ooxml;
  16. /**
  17. * Indicates a generic OOXML error.
  18. *
  19. * @author Yegor Kozlov
  20. */
  21. @SuppressWarnings("serial")
  22. public final class POIXMLException extends RuntimeException{
  23. /**
  24. * Create a new <code>POIXMLException</code> with no
  25. * detail mesage.
  26. */
  27. public POIXMLException() {
  28. super();
  29. }
  30. /**
  31. * Create a new <code>POIXMLException</code> with
  32. * the <code>String</code> specified as an error message.
  33. *
  34. * @param msg The error message for the exception.
  35. */
  36. public POIXMLException(String msg) {
  37. super(msg);
  38. }
  39. /**
  40. * Create a new <code>POIXMLException</code> with
  41. * the <code>String</code> specified as an error message and the cause.
  42. *
  43. * @param msg The error message for the exception.
  44. * @param cause the cause (which is saved for later retrieval by the
  45. * {@link #getCause()} method). (A <tt>null</tt> value is
  46. * permitted, and indicates that the cause is nonexistent or
  47. * unknown.)
  48. */
  49. public POIXMLException(String msg, Throwable cause) {
  50. super(msg, cause);
  51. }
  52. /**
  53. * Create a new <code>POIXMLException</code> with
  54. * the specified cause.
  55. *
  56. * @param cause the cause (which is saved for later retrieval by the
  57. * {@link #getCause()} method). (A <tt>null</tt> value is
  58. * permitted, and indicates that the cause is nonexistent or
  59. * unknown.)
  60. */
  61. public POIXMLException(Throwable cause) {
  62. super(cause);
  63. }
  64. }