Source: externs/shaka/error.js

  1. /*! @license
  2. * Shaka Player
  3. * Copyright 2016 Google LLC
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @externs
  8. */
  9. /**
  10. * @typedef {{
  11. * hasAppRestrictions: boolean,
  12. * missingKeys: !Array.<string>,
  13. * restrictedKeyStatuses: !Array.<string>
  14. * }}
  15. *
  16. * @property {boolean} hasAppRestrictions
  17. * Whether there are streams that are restricted due to app-provided
  18. * restrictions.
  19. * @property {!Array.<string>} missingKeys
  20. * The key IDs that were missing.
  21. * @property {!Array.<string>} restrictedKeyStatuses
  22. * The restricted EME key statuses that the streams had. For example,
  23. * 'output-restricted' would mean streams couldn't play due to restrictions
  24. * on the output device (e.g. HDCP).
  25. * @exportDoc
  26. */
  27. shaka.extern.RestrictionInfo;
  28. /**
  29. * @interface
  30. * @exportDoc
  31. */
  32. shaka.extern.Error = class {
  33. constructor() {
  34. /**
  35. * @type {shaka.util.Error.Severity}
  36. * @exportDoc
  37. */
  38. this.severity;
  39. /**
  40. * @const {shaka.util.Error.Category}
  41. * @exportDoc
  42. */
  43. this.category;
  44. /**
  45. * @const {shaka.util.Error.Code}
  46. * @exportDoc
  47. */
  48. this.code;
  49. /**
  50. * @const {!Array.<*>}
  51. * @exportDoc
  52. */
  53. this.data;
  54. /**
  55. * @type {boolean}
  56. * @exportDoc
  57. */
  58. this.handled;
  59. }
  60. };