Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit c8e1206

Browse files
committed
添加异常类
1 parent 34163d4 commit c8e1206

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

src/main/java/org/suren/autotest/web/framework/core/ConfigException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public ConfigException()
3737
this.message = "Config exception.";
3838
}
3939

40-
public ConfigException(String message, String message1) {
40+
public ConfigException(String message, String message1)
41+
{
4142
super(message);
4243
this.message = message1;
4344
}

src/main/java/org/suren/autotest/web/framework/core/LocatorException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public class LocatorException extends AutoTestException
2929
/** */
3030
private static final long serialVersionUID = 1L;
3131

32-
public LocatorException(String message) {
32+
public LocatorException(String message)
33+
{
3334
super(message);
3435
}
3536
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright 2002-2007 the original author or authors.
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+
17+
package org.suren.autotest.web.framework.core;
18+
19+
/**
20+
* @author suren
21+
* @date 2017年7月4日 下午2:17:18
22+
*/
23+
public class PageNotFoundException extends AutoTestException
24+
{
25+
26+
/** */
27+
private static final long serialVersionUID = 1L;
28+
29+
/**
30+
* @param message
31+
*/
32+
public PageNotFoundException(String page)
33+
{
34+
super("Page : " + page + " should have annotation Component or AutoPage, please recheck.");
35+
}
36+
37+
}

0 commit comments

Comments
 (0)