com.sap.tc.complib.validate
Class InvalidMemberException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sap.tc.complib.validate.ValidationException
|
+--com.sap.tc.complib.validate.InvalidMemberException
- All Implemented Interfaces:
- java.io.Serializable
- public class InvalidMemberException
- extends ValidationException
This exception is used to report invalid properties
or attributes of a component, public part etc.
- See Also:
- Serialized Form
|
Constructor Summary |
InvalidMemberException()
Create a new InvalidMemberException. |
InvalidMemberException(java.lang.Object member)
Create a new InvalidMemberException with a standard message. |
InvalidMemberException(java.lang.String message,
java.lang.Object member)
Create a new InvalidMemberException. |
InvalidMemberException(java.lang.String message,
java.lang.String memberName,
java.lang.Object member)
Create a new InvalidMemberException. |
|
Method Summary |
java.lang.Object |
getInvalidMember()
Returns the property or attribute that caused this exception. |
java.lang.String |
getInvalidMemberName()
Returns the name of the member that caused this exception. |
java.lang.String |
getMessage()
Returns the exception message. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InvalidMemberException
public InvalidMemberException()
- Create a new InvalidMemberException.
InvalidMemberException
public InvalidMemberException(java.lang.Object member)
- Create a new InvalidMemberException with a standard message.
- Parameters:
member - the invalid property or attribute.
InvalidMemberException
public InvalidMemberException(java.lang.String message,
java.lang.Object member)
- Create a new InvalidMemberException.
- Parameters:
message - the error or warning message.member - the invalid property or attribute.
InvalidMemberException
public InvalidMemberException(java.lang.String message,
java.lang.String memberName,
java.lang.Object member)
- Create a new InvalidMemberException.
- Parameters:
message - the error or warning message.memberName - tha name of the invalid property or attribute.member - the invalid property or attribute
getInvalidMember
public java.lang.Object getInvalidMember()
- Returns the property or attribute that caused this exception.
- Returns:
- reference to the invalid member.
getInvalidMemberName
public java.lang.String getInvalidMemberName()
- Returns the name of the member that caused this exception.
- Returns:
- the name of the invalid member.
getMessage
public java.lang.String getMessage()
- Returns the exception message.
- Overrides:
getMessage in class ValidationException