1 package com.atlassian.security.auth.trustedapps;
2
3 import com.atlassian.security.auth.trustedapps.TransportErrorMessage.Code;
4
5 /**
6 * Thrown when the IP address of the client does not match the allowed IP addresses
7 */
8 public abstract class InvalidIPAddressException extends InvalidRequestException
9 {
10 public InvalidIPAddressException(Code code, String address)
11 {
12 super(new TransportErrorMessage(code, "Request not allowed from IP address: {0}", address));
13 }
14 }