mirror of
https://github.com/gradle/actions.git
synced 2025-08-21 17:21:30 +08:00
12 lines
295 B
TypeScript
12 lines
295 B
TypeScript
export class PostActionJobFailure extends Error {
|
|
constructor(error: unknown) {
|
|
if (error instanceof Error) {
|
|
super(error.message)
|
|
this.name = error.name
|
|
this.stack = error.stack
|
|
} else {
|
|
super(String(error))
|
|
}
|
|
}
|
|
}
|