filebot/source/net/filebot/ExitCode.java

56 lines
1002 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package net.filebot;
public interface ExitCode {
public static final int SUCCESS = 0;
public static final int ERROR = 1;
public static final int BAD_LICENSE = 2;
public static final int FAILURE = 3;
public static final int DIE = 4;
public static final int NOOP = 100;
public static String getErrorMessage(int code) {
switch (code) {
case SUCCESS:
return "Done";
case ERROR:
return "Error";
case BAD_LICENSE:
return "Bad License";
case FAILURE:
return "Failure";
case DIE:
return "Abort";
case NOOP:
return "Done";
default:
return String.format("Error (%d)", code);
}
}
public static String getErrorKaomoji(int code) {
switch (code) {
case SUCCESS:
return "ヾ(@⌒ー⌒@)";
case ERROR:
return "(o_O)";
case BAD_LICENSE:
return "(>_<)";
case FAILURE:
return "(×_×)⌒☆";
case DIE:
return "(×_×)";
case NOOP:
return "¯\\_(ツ)_/¯";
default:
return "/╲/\\╭[☉﹏☉]╮/\\\\";
}
}
}