Package org.netbeans.server.uihandler.api.bugs

Examples of org.netbeans.server.uihandler.api.bugs.BugReporterException


                    allExtraCC.add(extraCC);
                }
            }
            return createNewBug(submit, submit.getBugzillaVersion(), client, false, extraComment, allExtraCC);
        } catch (IOException ex) {
            throw new BugReporterException(ex);
        }
    }
View Full Code Here


                BugReporter.LOG.log(Level.WARNING, "Adding user " + email + " at cc failed", e);
            }

        } catch (IOException ex) {
            BugReporter.LOG.log(Level.SEVERE, "Creating attachement failed", ex);
            throw new BugReporterException(ex);
        }
    }
View Full Code Here

    public void addToCCList(int bugId, String username, String password) {
        try {
            addToCCList(bugId, username, login(username, password));
        } catch (IOException ex) {
            BugReporter.LOG.log(Level.SEVERE, "Adding user to CC list failed for bug #" + bugId, ex);
            throw new BugReporterException(ex);
        }
    }
View Full Code Here

            data.add(new NameValuePair("comment", text));
            runBZQuery(issueId, PROCESS_BUG_URL, data, "Changes submitted", login(username, password));
            BugReporter.LOG.log(Level.INFO, "Comment was added to bug {0}", issueId);
        } catch (IOException e) {
            BugReporter.LOG.log(Level.SEVERE, "Comment was not added", e);
            throw new BugReporterException(e);
        }
    }
View Full Code Here

            data.add(new NameValuePair("priority", priority));
            runBZQuery(issueId, PROCESS_BUG_URL, data, "Changes submitted", login(username, password));
            BugReporter.LOG.log(Level.INFO, "Priority of bug {0} was changed to {1}", new Object[]{issueId, priority});
        } catch (IOException ex) {
            BugReporter.LOG.log(Level.SEVERE, "Priority was not changed", ex);
            throw new BugReporterException(ex);
        }
    }
View Full Code Here

            data.add(new NameValuePair("bug_status", "REOPENED"));
            runBZQuery(issueId, PROCESS_BUG_URL, data, null, login(username, password));
            BugReporter.LOG.log(Level.INFO, "Bug {0} was reopen", issueId);
        } catch (IOException e) {
            BugReporter.LOG.log(Level.SEVERE, "Reopening the bug #" + issueId + " failed", e);
            throw new BugReporterException(e);
        }
    }
View Full Code Here

            BugReporter.LOG.log(Level.INFO, "Some email address was not correct");
            return createNewBug(sbm, version, client, true, extraComment, extraCC);
        } else {
            String message = String.format("Bug was not created for report %1$s, and here is the reason: %2$s",
                    new Object[]{Integer.toString(sbm.getId()), methodResult});
            throw new BugReporterException(message);
        }
    }
View Full Code Here

            data.add(new NameValuePair("resolution", resolution));
            runBZQuery(bugId, PROCESS_BUG_URL, data, null, login(username, password));
            BugReporter.LOG.log(Level.INFO, "Bug {0} was resolved", bugId);
        } catch (IOException e) {
            BugReporter.LOG.log(Level.SEVERE, "Resolving the bug #" + bugId + " failed", e);
            throw new BugReporterException(e);
        }
    }
View Full Code Here

        try {
            response = executeMethod(client, method);
            if (expectedResult != null && !response.contains(expectedResult)) {
                String message = String.format("BZQuery to %1$s failed because of: %2$s",
                        new Object[]{url, response});
                throw new BugReporterException(message);
            }
        } finally {
            method.releaseConnection();
        }
        return response;
View Full Code Here

                    report = em.merge(report);
                    return TransactionResult.COMMIT;
                } catch (Exception e) {
                    String message = "Bug was not created for report #" + id;
                    BugReporter.LOG.log(Level.SEVERE, message, e);
                    throw new BugReporterException(message, e);
                }
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.api.bugs.BugReporterException

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.