
com.notnoop.exceptions.ApnsDeliveryErrorException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apns Show documentation
Show all versions of apns Show documentation
Library to send Apple Push Notification.
/*
* 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 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