1 /*
2 * Copyright (c) 2017 Baidu, Inc. All Rights Reserve.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package com.baidu.fsg.uid.exception;
17
18 /**
19 * UidGenerateException
20 *
21 * @author yutianbao
22 */
23 public class UidGenerateException extends RuntimeException {
24
25 /**
26 * Serial Version UID
27 */
28 private static final long serialVersionUID = -27048199131316992L;
29
30 /**
31 * Default constructor
32 */
33 public UidGenerateException() {
34 super();
35 }
36
37 /**
38 * Constructor with message & cause
39 *
40 * @param message
41 * @param cause
42 */
43 public UidGenerateException(String message, Throwable cause) {
44 super(message, cause);
45 }
46
47 /**
48 * Constructor with message
49 *
50 * @param message
51 */
52 public UidGenerateException(String message) {
53 super(message);
54 }
55
56 /**
57 * Constructor with message format
58 *
59 * @param msgFormat
60 * @param args
61 */
62 public UidGenerateException(String msgFormat, Object... args) {
63 super(String.format(msgFormat, args));
64 }
65
66 /**
67 * Constructor with cause
68 *
69 * @param cause
70 */
71 public UidGenerateException(Throwable cause) {
72 super(cause);
73 }
74
75 }