de.bytefish.fcmjava.exceptions.FcmException Maven / Gradle / Ivy
// Copyright (c) Philipp Wagner. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package de.bytefish.fcmjava.exceptions;
public abstract class FcmException extends RuntimeException {
private final int httpStatusCode;
private final String reasonPhrase;
public FcmException(int httpStatusCode, String reasonPhrase) {
this.httpStatusCode = httpStatusCode;
this.reasonPhrase = reasonPhrase;
}
public int getHttpStatusCode() {
return httpStatusCode;
}
public String getReasonPhrase() {
return reasonPhrase;
}
}