EOS 2  1.1.0
Einfache Objektbasierte Sprache
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 }
String formatMessage(String id, Object... info)
Definition: Messages.java:21
static final Messages ERROR
Definition: Text.java:8
Impressum