26 lines
666 B
Java
26 lines
666 B
Java
package me.zinch;
|
|
|
|
import me.zinch.console.Console;
|
|
import me.zinch.console.ShutdownHook;
|
|
import me.zinch.exceptions.ValidationException;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* Main class for running the application.
|
|
*/
|
|
public class App {
|
|
public static void main(String[] args) {
|
|
Runtime.getRuntime().addShutdownHook(new ShutdownHook());
|
|
|
|
try {
|
|
Console.run();
|
|
} catch (ValidationException e) {
|
|
System.out.println("Ошибка при валидации БД. Некоторые данные не валидны.");
|
|
System.out.println(e.getMessage());
|
|
} catch (IOException e) {
|
|
System.out.println(e.getMessage());
|
|
}
|
|
}
|
|
}
|