EOS 2
1.1.0
Einfache Objektbasierte Sprache
EosVM
src
de
lathanda
eos
vm
exceptions
TypeMissMatchException.java
gehe zur Dokumentation dieser Datei
1
package
de.lathanda.eos.vm.exceptions;
2
3
import
de.lathanda.eos.vm.text.Text;
4
12
public
class
TypeMissMatchException
extends
RuntimeException {
13
private
static
final
long
serialVersionUID = -1331782960608862330L;
14
private
final
String expected;
15
private
final
String found;
16
17
public
TypeMissMatchException
(String expected, String found) {
18
this.expected = expected;
19
this.found = found;
20
}
21
22
@Override
23
public
String
getLocalizedMessage
() {
24
return
Text
.
ERROR
.
formatMessage
(
"InvalidTypeCast"
, found, expected);
25
}
26
}
de.lathanda.eos.base.util.Messages.formatMessage
String formatMessage(String id, Object... info)
Definition:
Messages.java:21
de.lathanda.eos.vm.exceptions.TypeMissMatchException
Definition:
TypeMissMatchException.java:12
de.lathanda.eos.vm.exceptions.TypeMissMatchException.TypeMissMatchException
TypeMissMatchException(String expected, String found)
Definition:
TypeMissMatchException.java:17
de.lathanda.eos.vm.exceptions.TypeMissMatchException.getLocalizedMessage
String getLocalizedMessage()
Definition:
TypeMissMatchException.java:23
de.lathanda.eos.vm.text.Text
Definition:
Text.java:7
de.lathanda.eos.vm.text.Text.ERROR
static final Messages ERROR
Definition:
Text.java:8
Impressum