LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / reportbuilder / java / org / libreoffice / report / ReportExecutionException.java
blob3d7334d683f7fd7a304fd71b0cdec307e824bce4
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 package org.libreoffice.report;
20 public class ReportExecutionException extends Exception
23 /**
24 * Constructs a new exception with <code>null</code> as its detail message. The cause is
25 * not initialized, and may subsequently be initialized by a call to {@link
26 * #initCause}.
28 public ReportExecutionException()
32 /**
33 * Constructs a new exception with the specified cause and a detail message of
34 * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class
35 * and detail message of <tt>cause</tt>). This constructor is useful for exceptions that
36 * are little more than wrappers for other throwables (for example, {@link
37 * java.security.PrivilegedActionException}).
39 * @param cause the cause (which is saved for later retrieval by the {@link #getCause()}
40 * method). (A <tt>null</tt> value is permitted, and indicates that the
41 * cause is nonexistent or unknown.)
42 * @since 1.4
44 public ReportExecutionException(Throwable cause)
46 super(cause);
49 /**
50 * Constructs a new exception with the specified detail message. The cause is not
51 * initialized, and may subsequently be initialized by a call to {@link #initCause}.
53 * @param message the detail message. The detail message is saved for later retrieval by
54 * the {@link #getMessage()} method.
56 public ReportExecutionException(String message)
58 super(message);
61 /**
62 * Constructs a new exception with the specified detail message and cause. <p>Note that
63 * the detail message associated with <code>cause</code> is <i>not</i> automatically
64 * incorporated in this exception's detail message.
66 * @param message the detail message (which is saved for later retrieval by the {@link
67 * #getMessage()} method).
68 * @param cause the cause (which is saved for later retrieval by the {@link
69 * #getCause()} method). (A <tt>null</tt> value is permitted, and
70 * indicates that the cause is nonexistent or unknown.)
71 * @since 1.4
73 public ReportExecutionException(String message, Throwable cause)
75 super(message, cause);