com.geotab.http.exception.InactiveUserException Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.http.exception;
import org.apache.commons.lang3.StringUtils;
/**
* User is in active Exception.
*/
public class InactiveUserException extends JsonRpcErrorDataException {
/**
* Initializes a new instance.
*
* @param database The database the user is a member of.
*/
public InactiveUserException(String database) {
super(
"The user is not active" + (StringUtils.isEmpty(database) ? "" : " @ '" + database + "'"));
}
/**
* Initializes a new instance.
*/
public InactiveUserException() {
this(null);
}
}