-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
Improve Exception Handling
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
behaviour | ||
pause | ||
|
||
super pause. | ||
ATDDBrowser changedGitHubActions |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
accessing | ||
errorDictionary | ||
|
||
^ IdentityDictionary newFrom: { | ||
401 -> ATDDConnectionError. | ||
403 -> ATDDAccessDeniedError. | ||
404 -> ATDDNotFoundError | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ behaviour | |
pause | ||
|
||
self terminateProcess. | ||
super pause. | ||
self updateStatus | ||
super pause |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
data-processing | ||
validate: aString | ||
|
||
(aString matchesRegex: self class validSlug) ifFalse: [ TCINoValidSlugError signal ] | ||
(aString matchesRegex: self class validSlug) ifFalse: [ ATDDNoValidSlugError signal ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
behaviour | ||
pause | ||
|
||
super pause. | ||
ATDDBrowser changedTravisStatuses |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
An ATDDAccessDeniedError is thrown when the HTTP request results in a 403 (Forbidden) Error. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
accessDeniedMessage | ||
message | ||
|
||
^ 'Access denied' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
rateLimitMessage | ||
|
||
^ 'You have been rate-limited. This GitHub Action will now be paused. Consider providing a token to prevent this.' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
priv handling | ||
defaultAction | ||
|
||
^ Transcript show: self class message |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"class" : { | ||
"message" : "ng 6/18/2021 13:55", | ||
"rateLimitMessage" : "BF 6/18/2021 14:51" }, | ||
"instance" : { | ||
"defaultAction" : "ng 6/18/2021 13:53" } } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
An ATDDConnectionError is thrown when the HTTP request results in a 401 (Unauthorized) Error. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"defaultAction" : "ng 6/18/2021 14:03" } } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
An ATDDNotFoundError is thrown when the HTTP request results in a 404 (Not Found) Error. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
message | ||
|
||
^ 'Not Found' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
priv handling | ||
defaultAction | ||
|
||
^ Transcript show: self class message |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
"message" : "ng 6/18/2021 13:55" }, | ||
"instance" : { | ||
"defaultAction" : "ng 6/18/2021 13:59" } } |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
action | ||
refreshGitHubAction: aGitHubAction | ||
|
||
aGitHubAction refresh | ||
[ aGitHubAction refresh ] | ||
on: ATDDAccessDeniedError | ||
do: [ | ||
UIManager default inform: ATDDAccessDeniedError rateLimitMessage. | ||
self pauseTestingEntity: aGitHubAction | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
action | ||
resumeGitHubAction: aGitHubAction | ||
|
||
aGitHubAction resume | ||
[ aGitHubAction resume ] | ||
on: ATDDAccessDeniedError | ||
do: [ | ||
UIManager default inform: ATDDAccessDeniedError rateLimitMessage. | ||
self pauseTestingEntity: aGitHubAction | ||
] |