org.hyperledger.aries.api.exception.AriesException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aries-client-python Show documentation
Show all versions of aries-client-python Show documentation
Aries Cloud Agent - Python: Java client implementation
/*
* Copyright (c) 2020-2021 - for information on the respective copyright owner
* see the NOTICE file and/or the repository at
* https://github.com/hyperledger-labs/acapy-java-client
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.aries.api.exception;
import lombok.Getter;
public class AriesException extends RuntimeException {
private static final long serialVersionUID = 3021451664229724966L;
@Getter private final int code;
@Getter private final String message;
public AriesException (int code, String message) {
super(message);
this.code = code;
this.message = message;
}
public boolean codeIsNotFound() {
return 404 == code;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy