-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathInvalidRangeException.ts
More file actions
24 lines (20 loc) · 753 Bytes
/
InvalidRangeException.ts
File metadata and controls
24 lines (20 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { RuntimeException } from "../../RuntimeException";
/**
* Represents an exception thrown when an invalid {@link GoogleAppsScript.Spreadsheet.Range|Range} object is provided.
*
* @extends RuntimeException
* @see {@link Exception}
* @see {@link Error}
* @see {@link GoogleAppsScript.Spreadsheet.Range|Range}
* @see [Class Range](https://developers.google.com/apps-script/reference/spreadsheet/range)
* @since 1.5.0
* @version 1.0.0
*/
export class InvalidRangeException extends RuntimeException {
constructor(message?: string | undefined) {
super(message || "Invalid Range object provided.");
const target = new.target;
this.name = target.name;
Object.setPrototypeOf(this, target.prototype);
}
}