com.ibm.passwordrules
Class IncompatibleRulesException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.passwordrules.IncompatibleRulesException
- All Implemented Interfaces:
- java.io.Serializable
- public class IncompatibleRulesException
- extends java.lang.Exception
Two incompatible rules were joined or used together.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getReason()
Gets the reason for incompatibility |
Rule |
getRule1()
Gets the first incompatible rule |
Rule |
getRule2()
Gets the Gets the second incompatible rule |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INCOMPATIBLE_RULES
public static java.lang.String INCOMPATIBLE_RULES
IncompatibleRulesException
public IncompatibleRulesException(Rule rule1,
Rule rule2,
java.lang.String reason)
- Exception that indicates that rule1 and rule2 are incompatible.
- Parameters:
rule1
- The first rule.rule2
- The seconde rule.reason
- The reason the two rules are incompatible.
IncompatibleRulesException
public IncompatibleRulesException(Rule rule1,
Rule rule2)
- Exception that indicates that rule1 and rule2 are incompatible.
- Parameters:
rule1
- The first rule.rule2
- The seconde rule.
getRule1
public Rule getRule1()
- Gets the first incompatible rule
- Returns:
- First incompatible rule
getRule2
public Rule getRule2()
- Gets the Gets the second incompatible rule
- Returns:
- the second incompatible rule
getReason
public java.lang.String getReason()
- Gets the reason for incompatibility
- Returns:
- reason description