com.base.Exceptions.BaseException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A BaseException(int,String) 0 2 1
A BaseException() 0 2 1
1
package com.base.Exceptions;
2
3
public class BaseException extends Exception {
4
5
    /**
6
     * Construct {@link BaseException}
7
     */
8
    public BaseException() {
9
        super("Error (500): Something went wrong.");
10
    }
11
12
    /**
13
     * Construct {@link BaseException} with status code and Error Message
14
     * @param code Error Code
15
     * @param error Error Message
16
     */
17
    public BaseException(int code, String error) {
18
        super("Error ("+ code +"): " + error);
19
    }
20
21
}
22