# sass-exception

> This Sass module provides functions to standardize exception messages

Latest version **1.1.0** (published 2021-07-10) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install sass-exception
pnpm add sass-exception
yarn add sass-exception
bun add sass-exception
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-07-10 |
| First published | 2021-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | roydukkey |
| Maintainers | roydukkey |
| Keywords | sass, scss, dart-sass, throw, error, warn |

## Links

- npm: https://www.npmjs.com/package/sass-exception
- Repository: https://github.com/roydukkey/sass-module-exception
- Homepage: https://github.com/roydukkey/sass-module-exception#readme
- Issues: https://github.com/roydukkey/sass-module-exception/issues
- npm.io page: https://npm.io/package/sass-exception

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-07-10
- 1.0.0 — 2021-07-02

## README

# sass-exception

[![Release Version](https://img.shields.io/npm/v/sass-exception.svg)](https://www.npmjs.com/package/sass-exception)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

This Sass module provides functions to standardize exception messages.

## Install

### Requires

Install the package:

```bash
npm install sass-exception
```

Use the package like any other Sass module:

```scss
@use 'sass-exception';
```

Depending on your setup, you may need to configure `node_modules` as include path:

```js
const sass = require('sass');

sass.render({
  file: scss_filename,
  includePaths: ['node_modules']
});
```

## Public API

<dl>

  <dt><a href="//github.com/roydukkey/sass-module-exception/tree/master/src/exception/_is-separator-invalid.sass"><code>is-separator-invalid ( $value )</code></a></dt>
  <dd>Indicates whether a specified value is invalid for a separator parameter.</dd>

  <dt><a href="//github.com/roydukkey/sass-module-exception/tree/master/src/exception/_parameter.sass"><code>parameter ( $message, $context, $names... )</code></a></dt>
  <dd>Returns an error message stating an issue with one or more parameters.</dd>

  <dt><a href="//github.com/roydukkey/sass-module-exception/tree/master/src/exception/_parameter-type.sass"><code>parameter-type ( $context, $name, $value, $types... )</code></a></dt>
  <dd>Returns an error message stating a parameter received the wrong type.</dd>

  <dt><a href="//github.com/roydukkey/sass-module-exception/tree/master/src/exception/_separator.sass"><code>separator ( [$context] )</code></a></dt>
  <dd>Returns an error message stating a separator parameter or variable received the wrong value.</dd>

  <dt><a href="//github.com/roydukkey/sass-module-exception/tree/master/src/exception/_validate-index.sass"><code>validate-index ( $context, $name, $value, $iterable )</code></a></dt>
  <dd>Returns a valid index for the specified iterable; otherwise, an error message stating the reason the index is invalid.</dd>

  <dt><a href="//github.com/roydukkey/sass-module-exception/tree/master/src/exception/_variable.sass"><code>variable ( $message, $names... )</code></a></dt>
  <dd>Returns an error message stating an issue with one or more variables.</dd>

  <dt><a href="//github.com/roydukkey/sass-module-exception/tree/master/src/exception/_variable-type.sass"><code>variable-type ( $name, $value, $types... [, $message] )</code></a></dt>
  <dd>Returns an error message stating a variable received the wrong type.</dd>

</dl>

Don't see the function you're looking for? Request a [new feature](//github.com/roydukkey/sass-module-exception/issues/new) describing a use case.

---
_Source: https://npm.io/package/sass-exception · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
