(e: mixed)
| 93 | } |
| 94 | |
| 95 | function getMessageForException(e: mixed): ?string { |
| 96 | if (typeof e === 'string') { |
| 97 | return e; |
| 98 | } else if ( |
| 99 | e && |
| 100 | typeof e === 'object' && |
| 101 | e.message && |
| 102 | typeof e.message === 'string' |
| 103 | ) { |
| 104 | return e.message; |
| 105 | } |
| 106 | return undefined; |
| 107 | } |
| 108 | |
| 109 | export { |
| 110 | ExtendableError, |
no outgoing calls
no test coverage detected