File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
library/src/main/java/com/chad/library/adapter/base/util Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ package com .chad .library .adapter .base .util ;
2
+
3
+ /**
4
+ * https://github.com/chaychan
5
+ *
6
+ * @author ChayChan
7
+ * @description: AnnotationException
8
+ * @date 2018/3/30 17:07
9
+ */
10
+
11
+ public class ItemProviderAnnotationException extends RuntimeException {
12
+
13
+ public ItemProviderAnnotationException (String message ) {
14
+ super (message );
15
+ }
16
+
17
+ }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class ProviderDelegate {
18
18
public void registerProvider (BaseItemProvider provider ){
19
19
ItemProviderTag tag = provider .getClass ().getAnnotation (ItemProviderTag .class );
20
20
if (tag == null ){
21
- throw new RuntimeException ("ItemProviderTag not def layout" );
21
+ throw new ItemProviderAnnotationException ("ItemProviderTag not def layout" );
22
22
}
23
23
24
24
int viewType = tag .viewType ();
You can’t perform that action at this time.
0 commit comments