Cross Reference: OWLSValidationException.java
xref
: /
owl-s
/
src
/
org
/
mindswap
/
owls
/
validator
/
OWLSValidationException.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
2
ronwalf
package
org
.
mindswap
.
owls
.
validator
;
2
ronwalf
2
ronwalf
/**
2
ronwalf
* <p>Title: </p>
2
ronwalf
* <p>Description: </p>
2
ronwalf
* <p>Copyright: Copyright (c) 2005</p>
2
ronwalf
* <p>Company: Mindswap (htp://www.mindswap.org)</p>
2
ronwalf
*
@author
Michael Grove
2
ronwalf
*
@version
1.0
2
ronwalf
*/
2
ronwalf
2
ronwalf
public
class
OWLSValidationException
extends
Exception
2
ronwalf
{
2
ronwalf
public
static
final
int
ERROR_PARSE
=
0
;
2
ronwalf
public
static
final
int
ERROR_FILE_NOT_FOUND
=
1
;
2
ronwalf
2
ronwalf
private
int
mId
;
2
ronwalf
2
ronwalf
public
OWLSValidationException
(
int
theId
,
String
theMsg
)
2
ronwalf
{
2
ronwalf
super
(
theMsg
);
2
ronwalf
mId
=
theId
;
2
ronwalf
}
2
ronwalf
2
ronwalf
public
int
getId
() {
2
ronwalf
return
mId
;
2
ronwalf
}
2
ronwalf
2
ronwalf
public
static
OWLSValidationException
createParseException
(
String
theMsg
) {
2
ronwalf
return
new
OWLSValidationException
(
ERROR_PARSE
,
theMsg
);
2
ronwalf
}
2
ronwalf
2
ronwalf
public
static
OWLSValidationException
createFileNotFoundException
(
String
theMsg
) {
2
ronwalf
return
new
OWLSValidationException
(
ERROR_FILE_NOT_FOUND
,
theMsg
);
2
ronwalf
}
2
ronwalf
}