UNPKG

lux-framework

Version:

Build scalable, Node.js-powered REST APIs with almost no code.

15 lines (12 loc) 350 B
// @flow import { createServerError } from '../../../../server'; import type { ParameterLike } from '../index'; /** * @private */ class ParameterNotNullableError extends TypeError { constructor({ path }: ParameterLike) { super(`Parameter '${path}' is not nullable.`); } } export default createServerError(ParameterNotNullableError, 400);