Package org.infoglue.cms.exception

Examples of org.infoglue.cms.exception.Bug


  /**
   *
   */
  final void add(StringManager manager) {
    if(manager == null) {
      throw new Bug(sm.getString("chain.add.null_parameter_error"));
    }
    this.managers.add(manager);
  }
View Full Code Here


      //getLogger().info("result:" + result);
      return result;
    }
    catch (MalformedPerl5PatternException e)
    {
      throw new Bug(sm.getString("regexp.match.pattern_error", pattern), e);
    }
    catch (NullPointerException e)
    {
      throw new Bug(sm.getString("regexp.match.illegal_parameters_error", pattern, string), e);
   
  }
View Full Code Here

          tx.commit();
        }
        else
        {
          throw new Bug("You are not allowed to create " + name + " workflows.");
        }
      }
      catch (Exception e)
      {
        logger.error("An error occurred when we tries to run initializeWorkflow():" + e.getMessage(), e);
View Full Code Here

      RequestAnalyser.getRequestAnalyser().decApproximateNumberOfDatabaseQueries();
    }

        if(siteNode == null)
        {
            throw new Bug("The SiteNode with id [" + siteNodeId + "] was not found in SiteNodeHelper.getSiteNodeWithId. This should never happen.");
        }
   
        return siteNode;
    }
View Full Code Here

        }
        catch(Throwable e)
        {
            logger.error("Throwable " + e.getMessage());
            logger.warn("Throwable " + e.getMessage(), new Exception(e));
            final Bug bug = new Bug("Uncaught exception!", e);
            setError(bug, bug.getCause());
            result = ERROR;
        }
        finally
        {
        if(tm != null && !tm.getIsDoneRunning())
View Full Code Here

        result = ERROR;
      }
      catch(Throwable e)
      {
        logger.error("Throwable " + e.getMessage(), e);
        final Bug bug = new Bug("Uncaught exception!", e);
        setError(bug, bug.getCause());
        result = ERROR;
      }         
      }
      finally
        {
View Full Code Here

      RequestAnalyser.getRequestAnalyser().decApproximateNumberOfDatabaseQueries();
    }
   
    if(object == null)
    {
      throw new Bug("The object with id [" + id + "] was not found. This should never happen.");
    }
    return object;
  }
View Full Code Here

      RequestAnalyser.getRequestAnalyser().decApproximateNumberOfDatabaseQueries();
    }
   
    if(vo == null)
    {
      throw new Bug("The object with id [" + id + "] was not found. This should never happen.");
    }
       
    return vo.getVO();
  }
View Full Code Here

      results.close();
      oql.close();
    }
    catch(NoSuchMethodException e)
    {
      throw new Bug("The object [" + arg.getName() + "] is of the wrong type. This should never happen.", e);
    }
    catch(Exception e)
    {
      throw new SystemException("An error occurred when we tried to fetch " + arg.getName() + " Reason:" + e.getMessage(), e);   
    }   
View Full Code Here

      results.close();
      oql.close();
    }
    catch(NoSuchMethodException e)
    {
      throw new Bug("The object [" + arg.getName() + "] is of the wrong type. This should never happen.", e);
    }
    catch(Exception e)
    {
      throw new SystemException("An error occurred when we tried to fetch " + arg.getName() + " Reason:" + e.getMessage(), e);   
    }   
View Full Code Here

TOP

Related Classes of org.infoglue.cms.exception.Bug

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.