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.

NoFormatIDException.java 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.hpsf;
  16. /**
  17. * <p>This exception is thrown if a {@link MutablePropertySet} is to be written
  18. * but does not have a formatID set (see {@link
  19. * MutableSection#setFormatID(ClassID)} or
  20. * {@link org.apache.poi.hpsf.MutableSection#setFormatID(byte[])}.
  21. *
  22. * @author Rainer Klute <a
  23. * href="mailto:klute@rainer-klute.de">&lt;klute@rainer-klute.de&gt;</a>
  24. */
  25. public class NoFormatIDException extends HPSFRuntimeException
  26. {
  27. /**
  28. * <p>Constructor</p>
  29. */
  30. public NoFormatIDException()
  31. {
  32. super();
  33. }
  34. /**
  35. * <p>Constructor</p>
  36. *
  37. * @param msg The exception's message string
  38. */
  39. public NoFormatIDException(final String msg)
  40. {
  41. super(msg);
  42. }
  43. /**
  44. * <p>Constructor</p>
  45. *
  46. * @param reason This exception's underlying reason
  47. */
  48. public NoFormatIDException(final Throwable reason)
  49. {
  50. super(reason);
  51. }
  52. /**
  53. * <p>Constructor</p>
  54. *
  55. * @param msg The exception's message string
  56. * @param reason This exception's underlying reason
  57. */
  58. public NoFormatIDException(final String msg, final Throwable reason)
  59. {
  60. super(msg, reason);
  61. }
  62. }