com.partnersoft.cog
Class CogException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.partnersoft.cog.CogException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CogValidationException

public class CogException
extends java.lang.Exception

A superclass for exceptions that occur within cogs. Can also be used for generic Cog exceptions that don't have an appropriate subclass.

Copyright 2005-2009 Partner Software, Inc.

Version:
$Id: CogException.java 2044 2009-08-22 22:11:09Z paul $
Author:
Paul Reavis
See Also:
Serialized Form

Constructor Summary
CogException(Cog cog, java.lang.String message)
          Creates a CogException for the given Cog.
 
Method Summary
 Cog getCog()
          Returns the Cog causing this exception.
 
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

CogException

public CogException(Cog cog,
                    java.lang.String message)
Creates a CogException for the given Cog. The exception is assumed to be not be specific to a given node.

Parameters:
cog - cog node causing the problem
message - message describing the problem
Method Detail

getCog

public Cog getCog()
Returns the Cog causing this exception.

Returns:
node source of exception