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

WriterException.cs 1.7 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright 2008 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. using System;
  17. namespace ZXing
  18. {
  19. /// <summary>
  20. /// A base class which covers the range of exceptions which may occur when encoding a barcode using
  21. /// the Writer framework.
  22. /// </summary>
  23. /// <author>dswitkin@google.com (Daniel Switkin)</author>
  24. [Serializable]
  25. public sealed class WriterException : Exception
  26. {
  27. /// <summary>
  28. /// Initializes a new instance of the <see cref="WriterException"/> class.
  29. /// </summary>
  30. public WriterException()
  31. {
  32. }
  33. /// <summary>
  34. /// Initializes a new instance of the <see cref="WriterException"/> class.
  35. /// </summary>
  36. /// <param name="message">The message.</param>
  37. public WriterException(String message)
  38. :base(message)
  39. {
  40. }
  41. /// <summary>
  42. /// Initializes a new instance of the <see cref="WriterException"/> class.
  43. /// </summary>
  44. /// <param name="message">The message.</param>
  45. /// <param name="innerExc">The inner exc.</param>
  46. public WriterException(String message, Exception innerExc)
  47. : base(message, innerExc)
  48. {
  49. }
  50. }
  51. }