Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
e2dd659d
Commit
e2dd659d
authored
Oct 29, 2014
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include condition's location (class or method name) in message
Closes gh-1787
parent
9a491013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
SpringBootCondition.java
...ork/boot/autoconfigure/condition/SpringBootCondition.java
+5
-5
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/SpringBootCondition.java
View file @
e2dd659d
...
@@ -48,11 +48,11 @@ public abstract class SpringBootCondition implements Condition {
...
@@ -48,11 +48,11 @@ public abstract class SpringBootCondition implements Condition {
return
outcome
.
isMatch
();
return
outcome
.
isMatch
();
}
}
catch
(
NoClassDefFoundError
ex
)
{
catch
(
NoClassDefFoundError
ex
)
{
throw
new
IllegalStateException
(
throw
new
IllegalStateException
(
"Could not evaluate condition on "
"Could not evaluate condition owing
to internal class not found. "
+
classOrMethodName
+
" due
to internal class not found. "
+
"This can happen if you are @ComponentScanning a "
+
"This can happen if you are @ComponentScanning a "
+
"springframework package (e.g. if you put a @ComponentScan "
+
"springframework package (e.g. if you put a @ComponentScan "
+
"in the default package by mistake)"
,
ex
);
+
"in the default package by mistake)"
,
ex
);
}
}
catch
(
RuntimeException
ex
)
{
catch
(
RuntimeException
ex
)
{
throw
new
IllegalStateException
(
"Error processing condition on "
throw
new
IllegalStateException
(
"Error processing condition on "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment