code: func IsErrorCode(err error, c ErrorCode) bool {
  	serr, ok := err.(Error)
  	return ok && serr.ErrorCode == c
  }
docs: // IsErrorCode returns whether or not the provided error is a script error with
  // the provided error code.