Package org.bladerunnerjs.logging

Examples of org.bladerunnerjs.logging.Logger.error()


    catch (ServiceConfigurationError serviceError)
    {
      Throwable cause = serviceError.getCause();
      if (cause != null && cause.getClass() == InstantiationException.class)
      {
        logger.error(Messages.CANNOT_CREATE_INSTANCE_LOG_MSG, cause.getMessage());       
      } else
      {
        logger.error(Messages.ERROR_CREATING_OBJECT_LOG_MSG, serviceError);
      }
    }
View Full Code Here


      if (cause != null && cause.getClass() == InstantiationException.class)
      {
        logger.error(Messages.CANNOT_CREATE_INSTANCE_LOG_MSG, cause.getMessage());       
      } else
      {
        logger.error(Messages.ERROR_CREATING_OBJECT_LOG_MSG, serviceError);
      }
    }

    return objectList;
  }
View Full Code Here

     
      if (cause != null && cause.getClass() == InstantiationException.class)
      {
        if (logger != null)
        {
          logger.error(Messages.CANNOT_CREATE_INSTANCE_LOG_MSG, cause.getMessage());
        }
        else
        {
          System.err.println( String.format(Messages.CANNOT_CREATE_INSTANCE_LOG_MSG, cause.getMessage()) );
        }
View Full Code Here

        }
      } else
      {
        if (logger != null)
        {
          logger.error(Messages.ERROR_CREATING_OBJECT_LOG_MSG, serviceError);
        }
        else
        {
          System.err.println( String.format(Messages.ERROR_CREATING_OBJECT_LOG_MSG, serviceError) );
        }
View Full Code Here

      catch(IOException e) {
        throw new ModelUpdateException(e);
      }
    }
    catch(Exception e) {
      logger.error(Messages.NODE_CREATION_FAILED_LOG_MSG, getTypeName(), dir().getPath());
      throw e;
    }
  }
 
  protected void createDefaultNode() throws InvalidNameException, ModelUpdateException
View Full Code Here

      logger.debug(Messages.NODE_CREATED_LOG_MSG, getTypeName(), dir().getPath());
       
      rootNode.getFileInfo(dir().getParentFile()).resetLastModified();
    }
    catch(Exception e) {
      logger.error(Messages.NODE_CREATION_FAILED_LOG_MSG, getTypeName(), dir().getPath());
      throw e;
    }
  }
 
  @Override
View Full Code Here

      catch(IOException e) {
        throw new ModelUpdateException(e);
      }
    }
    catch(Exception e) {
      logger.error(Messages.NODE_DELETION_FAILED_LOG_MSG, getTypeName(), dir().getPath());
      throw e;
    }
  }
 
  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.