Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit b81e257

Browse files
committed
feat: Adds errors for pagination direction and sort order.
1 parent 222caf3 commit b81e257

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: src/errors/PaginationDirectionError.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// tslint:disable:no-class
2+
import { BaseError } from 'make-error';
3+
4+
export default class PaginationDirectionError extends BaseError {
5+
constructor(public paginationDirection: any, public propertyName: string) {
6+
super();
7+
}
8+
}

Diff for: src/errors/SortOrderError.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// tslint:disable:no-class
2+
import { BaseError } from 'make-error';
3+
4+
export default class SortOrderError extends BaseError {
5+
constructor(public sortOrder: any, public propertyName: string) {
6+
super();
7+
}
8+
}

0 commit comments

Comments
 (0)