Cross Reference: UnboundVariableException.java
xref
: /
owl-s
/
src
/
org
/
mindswap
/
exceptions
/
UnboundVariableException.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
2
ronwalf
/*
2
ronwalf
* Created on Dec 12, 2004
2
ronwalf
*/
2
ronwalf
package
org
.
mindswap
.
exceptions
;
2
ronwalf
2
ronwalf
import
org
.
mindswap
.
swrl
.
Variable
;
2
ronwalf
2
ronwalf
/**
2
ronwalf
*
@author
Evren Sirin
2
ronwalf
*/
2
ronwalf
public
class
UnboundVariableException
extends
RuntimeException
{
2
ronwalf
Variable
var
;
2
ronwalf
2
ronwalf
public
UnboundVariableException
(
Variable
var
) {
2
ronwalf
super
();
2
ronwalf
this
.
var
=
var
;
2
ronwalf
}
2
ronwalf
2
ronwalf
public
UnboundVariableException
(
Variable
var
,
String
message
) {
2
ronwalf
super
(
message
);
2
ronwalf
this
.
var
=
var
;
2
ronwalf
}
2
ronwalf
2
ronwalf
public
Variable
getVariable
() {
2
ronwalf
return
var
;
2
ronwalf
}
2
ronwalf
2
ronwalf
public
String
getMessage
() {
2
ronwalf
return
(
var
==
null
) ?
null
:
var
+
" is not bound!"
;
2
ronwalf
}
2
ronwalf
}