-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathInvalidSpreadsheetException.ts
More file actions
24 lines (20 loc) · 801 Bytes
/
InvalidSpreadsheetException.ts
File metadata and controls
24 lines (20 loc) · 801 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.Spreadsheet|Spreadsheet} object is provided.
*
* @extends RuntimeException
* @see {@link Exception}
* @see {@link Error}
* @see {@link GoogleAppsScript.Spreadsheet.Spreadsheet|Spreadsheet}
* @see [Class Spreadsheet](https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet)
* @since 1.5.0
* @version 1.0.0
*/
export class InvalidSpreadsheetException extends RuntimeException {
constructor(message?: string | undefined) {
super(message || "Invalid Spreadsheet object provided.");
const target = new.target;
this.name = target.name;
Object.setPrototypeOf(this, target.prototype);
}
}