Home Manual Reference Source Test Repository

src/Error/SerializationError.js

  1. /*
  2. * This file is part of the serializerjs package.
  3. *
  4. * (c) HAIRCVT <tfidry@haircvt.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9.  
  10. import SerializerError from './SerializerError';
  11.  
  12. /**
  13. * Error thrown upon (de-)serialization process.
  14. *
  15. * @author Théo FIDRY <theo.fidry@gmail.com>
  16. */
  17. export default class SerializationError extends SerializerError {
  18. /**
  19. * @param {string} [message='']
  20. */
  21. constructor(message = '') {
  22. super(message);
  23.  
  24. this.name = 'SerializationError';
  25. }
  26. }