1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-15 08:00:05 +00:00

feat: added type for error response

This commit is contained in:
Mihajlo Medjedovic
2020-09-14 16:47:54 +02:00
parent 9af45799b9
commit 53990a9ba3
3 changed files with 58 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
export class ErrorResponse {
body: ErrorBody
constructor(message: string, details?: any) {
this.body = {
message,
details
}
}
}
interface ErrorBody {
message: string
details: any
}

View File

@@ -9,3 +9,4 @@ export * from './SASjsWaitingRequest'
export * from './ServerType'
export * from './Session'
export * from './UploadFile'
export * from './ErrorResponse'