• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #4407

17 Jul 2025 08:32AM CUT coverage: 34.843% (-0.1%) from 34.982%
#4407

push

github

topframe
Update

0 of 148 new or added lines in 5 files covered. (0.0%)

6 existing lines in 1 file now uncovered.

14406 of 41346 relevant lines covered (34.84%)

0.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/core/src/main/java/com/aspectran/core/activity/aspect/AdviceException.java
1
/*
2
 * Copyright (c) 2008-present The Aspectran Project
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.aspectran.core.activity.aspect;
17

18
import com.aspectran.core.activity.ActivityException;
19
import com.aspectran.core.context.rule.AdviceRule;
20

21
import java.io.Serial;
22

23
/**
24
 * Checked exception thrown if an error occurs while executing the advice.
25
 */
26
public class AdviceException extends ActivityException {
27

28
    @Serial
29
    private static final long serialVersionUID = 6813516429436576091L;
30

31
    private final AdviceRule adviceRule;
32

33
    /**
34
     * Constructor to create exception to wrap another exception and pass a message.
35
     * @param msg a message to associate with the exception
36
     * @param adviceRule the advice rule
37
     * @param cause the real cause of the exception
38
     */
39
    public AdviceException(String msg, AdviceRule adviceRule, Throwable cause) {
40
        super(msg, cause);
×
41
        this.adviceRule = adviceRule;
×
42
    }
×
43

44
    /**
45
     * Returns the advice rule.
46
     * @return the advice rule
47
     */
48
    public AdviceRule getAdviceRule() {
49
        return adviceRule;
×
50
    }
51

52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc