Package com.puppetlabs.geppetto.diagnostic

Examples of com.puppetlabs.geppetto.diagnostic.ExceptionDiagnostic


        chain.addChild(ModuleUtils.createSyntaxErrorDiagnostic(e, null));
      }
      catch(Exception e) {
        syntaxError = true;
        e.printStackTrace();
        chain.addChild(new ExceptionDiagnostic(
          Diagnostic.ERROR, PARSE_FAILURE, "Unable to parse file " + path, e));
      }
    }
  }
View Full Code Here


      }
      catch(ForgeException e) {
        result.addChild(new Diagnostic(ERROR, PUBLISHER, e.getMessage()));
      }
      catch(Exception e) {
        result.addChild(new ExceptionDiagnostic(ERROR, PUBLISHER, "Unable to publish module " +
            builtModule.getName(), e));
      }
      return;
    }
View Full Code Here

          }
          catch(ForgeException e) {
            result.addChild(new Diagnostic(Diagnostic.ERROR, PUBLISHER, e.getMessage()));
          }
          catch(Exception e) {
            result.addChild(new ExceptionDiagnostic(
              Diagnostic.ERROR, PUBLISHER, "Unable to publish module " + builtModule.getName(), e));
          }
          return;
        }
View Full Code Here

   * @param diagnostics
   * @param message
   * @param e
   */
  private static void addExceptionDiagnostic(Diagnostic diagnostics, String message, Exception e) {
    ExceptionDiagnostic bd = new ExceptionDiagnostic(Diagnostic.ERROR, INTERNAL_ERROR, message, e);
    diagnostics.addChild(bd);
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.diagnostic.ExceptionDiagnostic

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.