com.notnoop.exceptions.ApnsDeliveryErrorException Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.notnoop.exceptions;
import com.notnoop.apns.DeliveryError;
/**
*
* @author kkirch
*/
public class ApnsDeliveryErrorException extends ApnsException {
private static final long serialVersionUID = 1L;
private final DeliveryError deliveryError;
public ApnsDeliveryErrorException(DeliveryError error) {
this.deliveryError = error;
}
@Override
public String getMessage() {
return "Failed to deliver notification with error code " + deliveryError.code();
}
public DeliveryError getDeliveryError() {
return deliveryError;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy