Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
0e49d55f
Commit
0e49d55f
authored
Aug 24, 2016
by
Roland Kluge
Browse files
Clean up and document API of MissingGraphElementPropertyException
parent
33cd728a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/common/graph/MissingGraphElementPropertyException.java
View file @
0e49d55f
...
@@ -23,15 +23,23 @@ package de.tudarmstadt.maki.simonstrator.api.common.graph;
...
@@ -23,15 +23,23 @@ package de.tudarmstadt.maki.simonstrator.api.common.graph;
/**
/**
* This exception may be used to indicate that a necessary property of an
* This exception may be used to indicate that a necessary property of an
* {@link INode} or {@link IEdge} is not set.
* {@link INode} or {@link IEdge} is not set.
*
* @author Roland Kluge - Initial Implementation
*/
*/
public
class
MissingGraphElementPropertyException
extends
RuntimeException
{
public
class
MissingGraphElementPropertyException
extends
RuntimeException
{
public
MissingGraphElementPropertyException
(
IEdge
edge
,
GraphElementProperty
<?>
property
)
{
/**
super
(
String
.
format
(
"Edge %s is missing required property %s"
,
edge
,
property
));
* Creates an exception to indicate that the given {@link IElement} is
}
* lacking the given {@link GraphElementProperty}.
*
public
MissingGraphElementPropertyException
(
INode
node
,
GraphElementProperty
<?>
property
)
{
* @param element
super
(
String
.
format
(
"Node %s is missing required property %s"
,
node
,
property
));
* the element
* @param property
* the property
*/
public
MissingGraphElementPropertyException
(
final
IElement
element
,
final
GraphElementProperty
<?
extends
Number
>
property
)
{
super
(
String
.
format
(
"Element %s is missing required property %s"
,
element
.
toString
(),
property
));
}
}
private
static
final
long
serialVersionUID
=
8622616464282511495L
;
private
static
final
long
serialVersionUID
=
8622616464282511495L
;
...
...
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