mirror of
https://github.com/gradle/actions.git
synced 2026-03-22 12:05:48 +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))
|
|
}
|
|
}
|
|
}
|