Coverage Summary for Class: KeyCrypterException (co.rsk.crypto)
Class |
Class, %
|
Method, %
|
Line, %
|
KeyCrypterException |
0%
(0/1)
|
0%
(0/2)
|
0%
(0/4)
|
1 /*
2 * This file is part of RskJ
3 * Copyright (C) 2017 RSK Labs Ltd.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /*
20 * Licensed under the Apache License, Version 2.0 (the "License")
21 * you may not use this file except in compliance with the License.
22 * You may obtain a copy of the License at
23 *
24 * http://www.apache.org/licenses/LICENSE-2.0
25 *
26 * Unless required by applicable law or agreed to in writing, software
27 * distributed under the License is distributed on an "AS IS" BASIS,
28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29 * See the License for the specific language governing permissions and
30 * limitations under the License.
31 */
32
33 package co.rsk.crypto;
34
35 /**
36 * <p>Exception to provide the following:</p>
37 * <ul>
38 * <li>Provision of encryption / decryption exception</li>
39 * </ul>
40 * <p>This base exception acts as a general failure mode not attributable to a specific cause (other than
41 * that reported in the exception message). Since this is in English, it may not be worth reporting directly
42 * to the user other than as part of a "general failure to parse" response.</p>
43 */
44 public class KeyCrypterException extends RuntimeException {
45 private static final long serialVersionUID = -4441989608332681377L;
46
47 public KeyCrypterException(String s) {
48 super(s);
49 }
50
51 public KeyCrypterException(String s, Throwable throwable) {
52 super(s, throwable);
53 }
54 }