package com.github.dbadia.sqrl.server.exception;

/**
 * Indicates that an error occurred (nut token timeout, invalid signature, etc) while processing a request from a SQRL
 * client, will trigger the setting of the provided tif on the response
 *
 * @author Dave Badia
 */
public class SqrlClientRequestProcessingException extends SqrlException {
	private static final long serialVersionUID = -7986435707384269525L;
	private final int			tifToAdd;

	public SqrlClientRequestProcessingException(final int tifToAdd, final String message) {
		super(message);
		this.tifToAdd = tifToAdd;
	}

	public int getTifToAdd() {
		return tifToAdd;
	}

}

@@ -43,16 +43,83 @@
 ption;%0A%0A
+import com.github.dbadia.sqrl.server.backchannel.SqrlLoggingUtil;%0A%0A
 /**%0A * I
@@ -606,23 +606,92 @@
 %09%09super(
-message
+new StringBuilder(SqrlLoggingUtil.getLogHeader()).append(message).toString()
 );%0A%09%09thi

embed sqrl client details in client request processing exceptions