-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a command to allow a more detailed reporting of errors. Added a…
… java class to store these error details.
- Loading branch information
1 parent
648fe9e
commit fe032a7
Showing
1 changed file
with
105 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
package org.hobbit.core.data; | ||
|
||
/** | ||
* A simple data structure that represents errors that components can report. | ||
* | ||
* @author Michael Röder ([email protected]) | ||
* | ||
*/ | ||
public class ErrorData { | ||
|
||
/** | ||
* ID of the container reporting the error. | ||
*/ | ||
protected String containerId; | ||
/** | ||
* IRI of the error type (optional). | ||
*/ | ||
protected String errorType; | ||
/** | ||
* A string that can be used as short label of an error (optional, the error | ||
* type label will be used as default) | ||
*/ | ||
protected String label; | ||
/** | ||
* A string that can be used as a short description of an error (optional, the | ||
* error type description will be used as default). | ||
*/ | ||
protected String description; | ||
/** | ||
* A string that contains details about the error, e.g., a stack trace | ||
* (optional). | ||
*/ | ||
protected String details; | ||
|
||
/** | ||
* @return the containerId | ||
*/ | ||
public String getContainerId() { | ||
return containerId; | ||
} | ||
|
||
/** | ||
* @param containerId the containerId to set | ||
*/ | ||
public void setContainerId(String containerId) { | ||
this.containerId = containerId; | ||
} | ||
|
||
/** | ||
* @return the errorType | ||
*/ | ||
public String getErrorType() { | ||
return errorType; | ||
} | ||
|
||
/** | ||
* @param errorType the errorType to set | ||
*/ | ||
public void setErrorType(String errorType) { | ||
this.errorType = errorType; | ||
} | ||
|
||
/** | ||
* @return the label | ||
*/ | ||
public String getLabel() { | ||
return label; | ||
} | ||
|
||
/** | ||
* @param label the label to set | ||
*/ | ||
public void setLabel(String label) { | ||
this.label = label; | ||
} | ||
|
||
/** | ||
* @return the description | ||
*/ | ||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
/** | ||
* @param description the description to set | ||
*/ | ||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
/** | ||
* @return the details | ||
*/ | ||
public String getDetails() { | ||
return details; | ||
} | ||
|
||
/** | ||
* @param details the details to set | ||
*/ | ||
public void setDetails(String details) { | ||
this.details = details; | ||
} | ||
|
||
} |