org.hyperledger.fabric.shim.ledger.CompositeKeyFormatException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-chaincode-shim Show documentation
Show all versions of fabric-chaincode-shim Show documentation
Hyperledger Fabric Java Chaincode Shim
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.shim.ledger;
class CompositeKeyFormatException extends IllegalArgumentException {
private static final long serialVersionUID = 1L;
private CompositeKeyFormatException(String s) {
super(s);
}
static CompositeKeyFormatException forInputString(String s, String group, int index) {
return new CompositeKeyFormatException(String.format("For input string '%s', found 'U+%06X' at index %d.", s, group.codePointAt(0), index));
}
static CompositeKeyFormatException forSimpleKey(String key) {
return new CompositeKeyFormatException(String.format("First character of the key [%s] contains a 'U+%06X' which is not allowed", key, CompositeKey.NAMESPACE.codePointAt(0)));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy