Passed
Push — master ( ec853f...5c2486 )
by Roannel Fernández
02:47
created

UserNotAuthorized()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 2
rs 10
c 1
b 0
f 0
1
package com.github.netkorp.telegram.framework.exceptions;
2
3
/**
4
 * Indicates that the command is not available for a user.
5
 */
6
public class UserNotAuthorized extends Exception {
7
8
    /**
9
     * Constructs a new exception with {@code null} as its detail message.
10
     * The cause is not initialized, and may subsequently be initialized by a
11
     * call to {@link #initCause}.
12
     */
13
    public UserNotAuthorized() {
14
        super("This command is not available for you");
15
    }
16
}
17