Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * $Id: CommonException.java 130 2009-06-05 17:01:24Z karianna $
   * $URL: https://ikasaneip.svn.sourceforge.net/svnroot/ikasaneip/tags/ikasan-0.7.3/common/src/main/java/org/ikasan/common/CommonException.java $
   * 
   * ====================================================================
   * Ikasan Enterprise Integration Platform
   * Copyright (c) 2003-2008 Mizuho International plc. and individual contributors as indicated
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the 
  * Free Software Foundation Europe e.V. Talstrasse 110, 40217 Dusseldorf, Germany 
  * or see the FSF site: http://www.fsfeurope.org/.
  * ====================================================================
  */
 package org.ikasan.common;
 
 
CommonException exception extends the standard Exception and includes an ExceptionType to allow categorisation of the thrown exception at the point it is thrown. If no ExceptionType is specified a default of UNDEFINED will be used.

Author(s):
Ikasan Development Team
 
 public class CommonException
     extends ResourceException
 {
    
Serial ID
 
     private static final long serialVersionUID = 1L;

    
Allow type definition to categorise the exception
 
     protected ExceptionType exceptionType;

    
Constructs a new common exception with null as its detail message and an UNDEFINED ExceptionType.
 
     public CommonException()
     {
         this(.);
     }

    
Constructs a new common exception with null as its detail message and a specified exception type.

Parameters:
exceptionType the exception type
 
     public CommonException(final ExceptionType exceptionType
     {
         super();
         this. = exceptionType;
     }

    
Constructs a new common exception with the specified detail message and an UNDEFINED ExceptionType.

Parameters:
message the detail message.
 
     public CommonException(final String message)
     {
         this(message.);
     }

    
Constructs a new common exception with the specified detail message and given ExceptionType.

Parameters:
message the detail message.
exceptionType the exception type
 
     public CommonException(final String messagefinal ExceptionType exceptionType)
     {
         super(message);
         this. = exceptionType;
     }

    
Constructs a new common exception with the specified detail message and cause and an UNDEFINED ExceptionType.

Parameters:
message the detail message.
cause the cause.
    public CommonException(final String messagefinal Throwable cause)
    {
        this(messagecause.);
    }

    
Constructs a new exception with the specified detail message and cause and the specified exception type.

Parameters:
message the detail message.
cause the cause.
exceptionType the exception type
    public CommonException(final String messagefinal Throwable cause
            final ExceptionType exceptionType)
    {
        super(messagecause);
        this. = exceptionType;
    }

    
Constructs a new common exception with the specified cause and an UNDEFINED ExceptionType.

Parameters:
cause the cause
    public CommonException(final Throwable cause)
    {
        this(cause.);
    }

    
Constructs a new common exception with the specified cause and the specified exception type.

Parameters:
cause the cause
exceptionType the exception type
    public CommonException(final Throwable causefinal ExceptionType exceptionType)
    {
        super(cause);
        this. = exceptionType;
    }
    
    
Setter for exceptionType

Parameters:
exceptionType type of exception
    public void setExceptionType(final ExceptionType exceptionType)
    {
        this. = exceptionType;
    }

    
Getter for exceptionType

Returns:
ExceptionType
    {
        return this.;
    }
    
New to GrepCode? Check out our FAQ X