Skip to content

Commit 641222f

Browse files
chore(internal): codegen related update (#201)
1 parent 59fb348 commit 641222f

19 files changed

Lines changed: 675 additions & 560 deletions

.rubocop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ Naming/ClassAndModuleCamelCase:
127127
- "**/*.rbi"
128128

129129
Naming/MethodParameterName:
130-
Exclude:
131-
- "**/*.rbi"
130+
Enabled: false
132131

133132
Naming/PredicateName:
134133
Exclude:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ When the library is unable to connect to the API, or if the API returns a non-su
6363
```ruby
6464
begin
6565
customer = orb.customers.create(email: "example-customer@withorb.com", name: "My Customer")
66-
rescue Orb::Error => e
66+
rescue Orb::Errors::APIError => e
6767
puts(e.status) # 400
6868
end
6969
```
@@ -79,7 +79,7 @@ Error codes are as followed:
7979
| HTTP 409 | `ConflictError` |
8080
| HTTP 422 | `UnprocessableEntityError` |
8181
| HTTP 429 | `RateLimitError` |
82-
| HTTP >=500 | `InternalServerError` |
82+
| HTTP >= 500 | `InternalServerError` |
8383
| Other HTTP error | `APIStatusError` |
8484
| Timeout | `APITimeoutError` |
8585
| Network error | `APIConnectionError` |

0 commit comments

Comments
 (0)