
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@availity/exceptions-axios
Advanced tools
A package wrapping the Exceptions class to use axios. Using avLogMessagesApi to log errors.
More details about configuration can be found in Exceptions-Core
npm install @availity/exceptions-axios
yarn add @availity/exceptions-axios
Add module to your app.
import avExceptionsAxios from '@availity/exceptions-axios';
Configure the default options
import avExceptionsAxios from '@availity/exceptions-axios';
avExceptionsAxios.enabled(false); // enabled defaults to true... this example would disable it
avExceptionsAxios.appId('exampleApp'); // if undefined, logs 'N/A'
avExceptionsAxios.repeatTime(5000); // sets the time in ms between logging calls for the same error message. (default 5 seconds)
It will automatically catch all error which bubble up to the window (error which are not caught and handled in code) and log those errors. So as long as you are not catching your error you should be able to throw and error to log it.
// this import doesn't need to be on every file, just needs to be imported once somewhere like the main index.js or App.js
import avExceptionsAxios from '@availity/exceptions-axios';
// ... somewhere when something happened
throw new Error('As long as this error is not caught it will be logged');
Or you can manually log and error in the case where something is catching and handling errors before they bubble to the window:
import avExceptionsAxios from '@availity/exceptions-axios';
// ... somewhere when something happened
avExceptionsAxios.submitError(new Error('Manually logging this error'));
FAQs
Availity class to log exceptions via axios
The npm package @availity/exceptions-axios receives a total of 41 weekly downloads. As such, @availity/exceptions-axios popularity was classified as not popular.
We found that @availity/exceptions-axios demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.