-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup and finished interface renaming
- Loading branch information
Miel Vander Sande
committed
Jan 4, 2016
1 parent
541c48f
commit 9f4fe2a
Showing
20 changed files
with
75 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/org/linkeddatafragments/exceptions/DataSourceCreationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.linkeddatafragments.exceptions; | ||
|
||
/** | ||
* | ||
* @author mielvandersande | ||
*/ | ||
public class DataSourceCreationException extends DataSourceException { | ||
|
||
public DataSourceCreationException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public DataSourceCreationException(String datasourceName, String message) { | ||
super(datasourceName, "Could not create DataSource - " + message); | ||
} | ||
} |
18 changes: 12 additions & 6 deletions
18
src/org/linkeddatafragments/exceptions/DataSourceException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
package org.linkeddatafragments.exceptions; | ||
|
||
import org.linkeddatafragments.datasource.IDataSource; | ||
|
||
/** | ||
* | ||
* @author mielvandersande | ||
*/ | ||
public class DataSourceException extends Exception { | ||
private static final long serialVersionUID = 1L; | ||
abstract public class DataSourceException extends Exception { | ||
|
||
public DataSourceException(Throwable cause) { | ||
super(cause.getMessage()); | ||
super(cause); | ||
} | ||
|
||
public DataSourceException(String message) { | ||
super("Could not create DataSource: " + message); | ||
} | ||
public DataSourceException(String datasourceName, String message) { | ||
super("Error for datasource '" + datasourceName + "': " + message); | ||
} | ||
|
||
public DataSourceException(IDataSource datasource, String message) { | ||
this(datasource.getTitle(), message); | ||
} | ||
|
||
} |
11 changes: 2 additions & 9 deletions
11
src/org/linkeddatafragments/exceptions/DataSourceNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
package org.linkeddatafragments.exceptions; | ||
|
||
import org.linkeddatafragments.datasource.IDataSource; | ||
|
||
/** | ||
* | ||
* @author mielvandersande | ||
*/ | ||
public class DataSourceNotFoundException extends Exception { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public DataSourceNotFoundException(Throwable cause) { | ||
super(cause.getMessage()); | ||
} | ||
public class DataSourceNotFoundException extends DataSourceException { | ||
|
||
public DataSourceNotFoundException(String dataSourceName) { | ||
super("Data source " + dataSourceName + " not found."); | ||
super(dataSourceName, "Datasource not found."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/org/linkeddatafragments/fragments/LinkedDataFragmentRequestBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.