LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / reportbuilder / java / org / libreoffice / report / DataSourceException.java
blob5990b030f6231df8613048205f8943e2ba919aef
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 /**
21 * A general exception to indicate that there was an error while accessing the
22 * datasource.
25 public class DataSourceException extends Exception
28 /**
29 * Constructs a new exception with <code>null</code> as its detail message.
30 * The cause is not initialized, and may subsequently be initialized by a call
31 * to {@link #initCause}.
33 public DataSourceException()
35 super();
38 /**
39 * Constructs a new exception with the specified detail message and cause.
40 * <p>Note that the detail message associated with <code>cause</code> is
41 * <i>not</i> automatically incorporated in this exception's detail message.
43 * @param message the detail message (which is saved for later retrieval by
44 * the {@link #getMessage()} method).
45 * @param cause the cause (which is saved for later retrieval by the {@link
46 * #getCause()} method). (A <tt>null</tt> value is permitted,
47 * and indicates that the cause is nonexistent or unknown.)
48 * @since 1.4
50 public DataSourceException(String message, Throwable cause)
52 super(message, cause);