( shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, opt_9 )
| 26 | * @throws {UserError} when shouldBeTruthy is not truthy. |
| 27 | */ |
| 28 | export function userAssert( |
| 29 | shouldBeTruthy, |
| 30 | opt_message, |
| 31 | opt_1, |
| 32 | opt_2, |
| 33 | opt_3, |
| 34 | opt_4, |
| 35 | opt_5, |
| 36 | opt_6, |
| 37 | opt_7, |
| 38 | opt_8, |
| 39 | opt_9 |
| 40 | ) { |
| 41 | return assertions.assert( |
| 42 | USER_ERROR_SENTINEL, |
| 43 | shouldBeTruthy, |
| 44 | opt_message, |
| 45 | opt_1, |
| 46 | opt_2, |
| 47 | opt_3, |
| 48 | opt_4, |
| 49 | opt_5, |
| 50 | opt_6, |
| 51 | opt_7, |
| 52 | opt_8, |
| 53 | opt_9 |
| 54 | ); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Throws an error if the first argument isn't an Element. |
no test coverage detected