Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

errors.js 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // these aren't really private, but nor are they really useful to document
  2. /**
  3. * @private
  4. */
  5. class LuxonError extends Error {}
  6. /**
  7. * @private
  8. */
  9. export class InvalidDateTimeError extends LuxonError {
  10. constructor(reason) {
  11. super(`Invalid DateTime: ${reason.toMessage()}`);
  12. }
  13. }
  14. /**
  15. * @private
  16. */
  17. export class InvalidIntervalError extends LuxonError {
  18. constructor(reason) {
  19. super(`Invalid Interval: ${reason.toMessage()}`);
  20. }
  21. }
  22. /**
  23. * @private
  24. */
  25. export class InvalidDurationError extends LuxonError {
  26. constructor(reason) {
  27. super(`Invalid Duration: ${reason.toMessage()}`);
  28. }
  29. }
  30. /**
  31. * @private
  32. */
  33. export class ConflictingSpecificationError extends LuxonError {}
  34. /**
  35. * @private
  36. */
  37. export class InvalidUnitError extends LuxonError {
  38. constructor(unit) {
  39. super(`Invalid unit ${unit}`);
  40. }
  41. }
  42. /**
  43. * @private
  44. */
  45. export class InvalidArgumentError extends LuxonError {}
  46. /**
  47. * @private
  48. */
  49. export class ZoneIsAbstractError extends LuxonError {
  50. constructor() {
  51. super("Zone is an abstract class");
  52. }
  53. }