org.springframework.richclient.command
Class InvalidGroupMemberException

Show UML class diagram
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.richclient.application.ApplicationException
                  extended by org.springframework.richclient.command.CommandException
                      extended by org.springframework.richclient.command.InvalidGroupMemberException
All Implemented Interfaces:
Serializable

public class InvalidGroupMemberException
extends CommandException

Indicates that an object is not a valid member of a CommandGroup.

Usually, a command group member will be a subclass of AbstractCommand, however some command group implementations may define more specific rules about what types of members they will accept.

Since:
0.3
Author:
Kevin Stembridge
See Also:
Serialized Form

Constructor Summary
InvalidGroupMemberException(Class invalidMemberClass, Class commandGroupClass)
          Creates a new InvalidGroupMemberException.
InvalidGroupMemberException(String message, Class invalidMemberClass, Class commandGroupClass)
          Creates a new InvalidGroupMemberException.
InvalidGroupMemberException(String message, Class invalidMemberClass, Class commandGroupClass, Throwable cause)
          Creates a new InvalidGroupMemberException.
 
Method Summary
 Class getCommandGroupClass()
          Returns the class of the command group that the member is invalid for.
 Class getInvalidMemberClass()
          Returns the class of the invalid member.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidGroupMemberException

public InvalidGroupMemberException(Class invalidMemberClass,
                                   Class commandGroupClass)
Creates a new InvalidGroupMemberException.

Parameters:
invalidMemberClass - The class of the invalid member.
commandGroupClass - The class of the command group that the member is not valid for.

InvalidGroupMemberException

public InvalidGroupMemberException(String message,
                                   Class invalidMemberClass,
                                   Class commandGroupClass)
Creates a new InvalidGroupMemberException.

Parameters:
message - The detail message.
invalidMemberClass - The class of the invalid member.
commandGroupClass - The class of the command group that the member is invalid for.

InvalidGroupMemberException

public InvalidGroupMemberException(String message,
                                   Class invalidMemberClass,
                                   Class commandGroupClass,
                                   Throwable cause)
Creates a new InvalidGroupMemberException.

Parameters:
message - The detail message.
invalidMemberClass - The class of the invalid member.
commandGroupClass - The class of the command group that the member is invalid for.
cause - The nested exception.
Method Detail

getCommandGroupClass

public Class getCommandGroupClass()
Returns the class of the command group that the member is invalid for.

Returns:
Returns the value of the commandGroupClass field, possibly null.

getInvalidMemberClass

public Class getInvalidMemberClass()
Returns the class of the invalid member.

Returns:
Returns the value of the invalidMemberClass field, possibly null.


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.