Loading src/core/protocol/errors/ErrorResponse.ts +15 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -127,6 +127,20 @@ export class SCNotFoundErrorResponse extends SCError { } } /** * An error that is returned whenever there is a syntax error */ export class SCSyntaxError extends SCError { /** * Create a SyntaxError * @param message Describes the syntax error * @param stack Set to true if a stack trace should be created */ constructor(message: string, stack?: boolean) { super('SyntaxError', message, 400, stack); } } /** * An error that is returned, when an internal server error occurred */ Loading src/core/protocol/routes/INDEX/IndexRequest.ts +2 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -31,6 +31,7 @@ export class SCIndexRoute extends SCAbstractRoute { this.errorNames = [ 'SCInternalServerErrorResponse', 'SCMethodNotAllowedErrorResponse', 'SCSyntaxError', 'SCUnsupportedMediaTypeErrorResponse', 'SCValidationErrorResponse', ]; Loading src/core/protocol/routes/TYPE/UID/ThingUpdateRequest.ts +2 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -32,6 +32,7 @@ export class SCThingUpdateRoute extends SCAbstractRoute { 'SCInternalServerErrorResponse', 'SCMethodNotAllowedErrorResponse', 'SCNotFoundErrorResponse', 'SCSyntaxError', 'SCUnsupportedMediaTypeErrorResponse', 'SCValidationErrorResponse', ]; Loading src/core/protocol/routes/bookAvailability/BookAvailabilityRequest.ts +2 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -63,6 +63,7 @@ export class SCBookAvailabilityRoute extends SCAbstractRoute { 'SCInternalServerErrorResponse', 'SCMethodNotAllowedErrorResponse', 'SCNotFoundErrorResponse', 'SCSyntaxError', 'SCUnsupportedMediaTypeErrorResponse', 'SCValidationErrorResponse', ]; Loading src/core/protocol/routes/bulk/BulkRequest.ts +2 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -62,6 +62,7 @@ export class SCBulkRoute extends SCAbstractRoute { this.errorNames = [ 'SCInternalServerErrorResponse', 'SCMethodNotAllowedErrorResponse', 'SCSyntaxError', 'SCUnsupportedMediaTypeErrorResponse', 'SCValidationErrorResponse', ]; Loading Loading
src/core/protocol/errors/ErrorResponse.ts +15 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -127,6 +127,20 @@ export class SCNotFoundErrorResponse extends SCError { } } /** * An error that is returned whenever there is a syntax error */ export class SCSyntaxError extends SCError { /** * Create a SyntaxError * @param message Describes the syntax error * @param stack Set to true if a stack trace should be created */ constructor(message: string, stack?: boolean) { super('SyntaxError', message, 400, stack); } } /** * An error that is returned, when an internal server error occurred */ Loading
src/core/protocol/routes/INDEX/IndexRequest.ts +2 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -31,6 +31,7 @@ export class SCIndexRoute extends SCAbstractRoute { this.errorNames = [ 'SCInternalServerErrorResponse', 'SCMethodNotAllowedErrorResponse', 'SCSyntaxError', 'SCUnsupportedMediaTypeErrorResponse', 'SCValidationErrorResponse', ]; Loading
src/core/protocol/routes/TYPE/UID/ThingUpdateRequest.ts +2 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -32,6 +32,7 @@ export class SCThingUpdateRoute extends SCAbstractRoute { 'SCInternalServerErrorResponse', 'SCMethodNotAllowedErrorResponse', 'SCNotFoundErrorResponse', 'SCSyntaxError', 'SCUnsupportedMediaTypeErrorResponse', 'SCValidationErrorResponse', ]; Loading
src/core/protocol/routes/bookAvailability/BookAvailabilityRequest.ts +2 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -63,6 +63,7 @@ export class SCBookAvailabilityRoute extends SCAbstractRoute { 'SCInternalServerErrorResponse', 'SCMethodNotAllowedErrorResponse', 'SCNotFoundErrorResponse', 'SCSyntaxError', 'SCUnsupportedMediaTypeErrorResponse', 'SCValidationErrorResponse', ]; Loading
src/core/protocol/routes/bulk/BulkRequest.ts +2 −1 Original line number Diff line number Diff line /* * Copyright (C) 2018 StApps * Copyright (C) 2018-2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. Loading Loading @@ -62,6 +62,7 @@ export class SCBulkRoute extends SCAbstractRoute { this.errorNames = [ 'SCInternalServerErrorResponse', 'SCMethodNotAllowedErrorResponse', 'SCSyntaxError', 'SCUnsupportedMediaTypeErrorResponse', 'SCValidationErrorResponse', ]; Loading