Skip to content

zentrick/iab-vast-error

Repository files navigation

iab-vast-error

npm Dependencies Build Status Coverage Status JavaScript Standard Style

Error class that describes VAST errors.

Usage

import VASTError from 'iab-vast-error'

try {
  throw new VASTError(100)
} catch (e) {
  if (e instanceof VASTError) {
    // e.code -> 100
    // e.message -> VAST error 100: XML parsing error.
  }
}

Maintainer

Tim De Pauw

License

MIT

About

Error class that describes VAST errors.

Resources

License

Stars

Watchers

Forks

Packages

No packages published