public class KeyTypeException extends KeyException
| Constructor and Description |
|---|
KeyTypeException(Class<? extends Key> expectedKeyClass)
Creates a new key type exception.
|
KeyTypeException(Class<? extends Key> expectedKeyInterface,
Class<?>... additionalInterfaces)
Creates a new key type exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic KeyTypeException(Class<? extends Key> expectedKeyClass)
expectedKeyClass - The expected key class. Should not be
null.public KeyTypeException(Class<? extends Key> expectedKeyInterface, Class<?>... additionalInterfaces)
expectedKeyInterface - The expected key interfaces. Should not
be null.additionalInterfaces - Additional interfaces the key is required to implement.Copyright © 2020 Connect2id Ltd.. All rights reserved.