21 lines
523 B
Java
21 lines
523 B
Java
package org.whispersystems.signalservice.internal.push;
|
|
|
|
import org.whispersystems.signalservice.api.push.exceptions.NonSuccessfulResponseCodeException;
|
|
|
|
public class DeviceLimitExceededException extends NonSuccessfulResponseCodeException {
|
|
|
|
private final DeviceLimit deviceLimit;
|
|
|
|
public DeviceLimitExceededException(DeviceLimit deviceLimit) {
|
|
this.deviceLimit = deviceLimit;
|
|
}
|
|
|
|
public int getCurrent() {
|
|
return deviceLimit.getCurrent();
|
|
}
|
|
|
|
public int getMax() {
|
|
return deviceLimit.getMax();
|
|
}
|
|
}
|