public class HookVeto extends RuntimeException
Constructor and Description |
---|
HookVeto(String theReasonKey,
String theReason)
construct a veto
|
Modifier and Type | Method and Description |
---|---|
void |
assignVetoType(VetoType vetoType1,
boolean overwriteIfExisting)
veto type.
|
Set<String> |
attributeKeySet()
return the keyset of attributes, but never return null.
|
Object |
getAttribute(String key)
get the value of a key or null if not there
|
String |
getReason()
default text that would be shown to user if there is no externalized
string available.
|
String |
getReasonKey()
key of the reason, e.g.
|
VetoType |
getVetoType()
veto type.
|
void |
putAttribute(String key,
Object value)
put an attribute
|
void |
setVetoType(VetoType vetoType1)
veto type.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HookVeto(String theReasonKey, String theReason)
theReasonKey
- key of the reason, e.g. something that could be used in an
externalized string file e.g. for the UI. e.g. hook.veto.group.invalidExtensiontheReason
- default text that would be shown to user if there is no externalized
string available. e.g. 'Invalid ID for group. ID must be less than
20 characters.public VetoType getVetoType()
public void setVetoType(VetoType vetoType1)
vetoType1
- the vetoType to setpublic void assignVetoType(VetoType vetoType1, boolean overwriteIfExisting)
vetoType1
- the vetoType to setoverwriteIfExisting
- true to overwrite if existingpublic Object getAttribute(String key)
key
- public void putAttribute(String key, Object value)
key
- value
- public Set<String> attributeKeySet()
public String getReasonKey()
public String getReason()
Copyright © 2016 Internet2. All rights reserved.