Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xml
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
DAI 24-25
xml
Commits
7ee41f6a
Commit
7ee41f6a
authored
Nov 16, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes runtime to SAX exception in TrenesContentHandler
The SAXException is more adequate than the RuntimeException.
parent
e018e331
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
TrenesContentHandler.java
...ava/es/uvigo/esei/dai/xml/tests/TrenesContentHandler.java
+1
-1
No files found.
src/main/java/es/uvigo/esei/dai/xml/tests/TrenesContentHandler.java
View file @
7ee41f6a
...
@@ -39,7 +39,7 @@ public class TrenesContentHandler extends DefaultHandler {
...
@@ -39,7 +39,7 @@ public class TrenesContentHandler extends DefaultHandler {
try
{
try
{
this
.
lastDate
=
Tren
.
DATE_FORMAT
.
parse
(
textContent
);
this
.
lastDate
=
Tren
.
DATE_FORMAT
.
parse
(
textContent
);
}
catch
(
final
ParseException
pe
)
{
}
catch
(
final
ParseException
pe
)
{
throw
new
Runtime
Exception
(
"Invalid date: "
+
textContent
,
pe
);
throw
new
SAX
Exception
(
"Invalid date: "
+
textContent
,
pe
);
}
}
}
}
}
}
...
...
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