1
0
Fork 0
mirror of https://github.com/besterprotocol/besterd synced 2023-12-13 21:00:32 +01:00

Fixed indentation in response.d

This commit is contained in:
Tristan B. Kildaire 2020-04-27 13:00:16 +02:00
parent 829b777c19
commit cbd6c23db8

View file

@ -110,12 +110,14 @@ public final class HandlerResponse
error = true;
}
/**
* If an error was envountered anyway down the processing of the
* message-handler then raise a `ResponseError` exception.
*/
if(error)
{
throw new ResponseError(messageResponse, statusCode);
}
}
public void execute(BesterConnection originalRequester)
@ -174,6 +176,12 @@ public final class HandlerResponse
public final class ResponseError : BesterException
{
/* */
/* The status code that resulted in the response handling error */
private ulong statusCode;
this(JSONValue messageResponse, ulong statusCode)
{
/* TODO: Set message afterwards again */