Skip to content

Commit

Permalink
Added a command to allow a more detailed reporting of errors. Added a…
Browse files Browse the repository at this point in the history
… java class to store these error details.
  • Loading branch information
MichaelRoeder committed Dec 1, 2023
1 parent 648fe9e commit fe032a7
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions src/main/java/org/hobbit/core/data/ErrorData.java
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;
}

}

0 comments on commit fe032a7

Please sign in to comment.