()
| 110 | } |
| 111 | |
| 112 | invalidColor () { |
| 113 | const code = 'INVALID_COLOR' |
| 114 | const message = `[${code}] Invalid color ${this.color}` |
| 115 | const help = `fix: [${ISSUE_BY_CODE[code]}]` |
| 116 | |
| 117 | const e = new Error(message) |
| 118 | e.code = code |
| 119 | e.help = help |
| 120 | e.messageWithHelp = `${message}. ${help}` |
| 121 | return e |
| 122 | } |
| 123 | |
| 124 | invalidConvention () { |
| 125 | const code = 'INVALID_CONVENTION' |