@@ -0,0 +1,1923 @@
+/*%0A * Copyright (c) 2015-2018 Dzikoysk%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.panda_lang.panda.framework.language.interpreter.messenger.translators;%0A%0Aimport org.panda_lang.panda.framework.design.interpreter.messenger.*;%0Aimport org.panda_lang.panda.framework.language.interpreter.messenger.*;%0Aimport org.panda_lang.panda.framework.language.interpreter.messenger.defaults.*;%0Aimport org.panda_lang.panda.utilities.redact.format.*;%0A%0Apublic class ExceptionTranslator implements MessengerMessageTranslator%3CException%3E %7B%0A%0A    @Override%0A    public void handle(Messenger messenger, Exception element) %7B%0A        MessageFormatter formatter = DefaultMessageFormatter.getFormatter()%0A                .register(%22%7B%7Bmessage%7D%7D%22, element::getMessage)%0A                .register(%22%7B%7Bdetails%7D%7D%22, () -%3E %7B%0A                    return null;%0A                %7D);%0A%0A        DefaultFailureTemplateBuilder templateBuilder = new DefaultFailureTemplateBuilder()%0A                .includeCause()%0A                .includeDetails(element.getStackTrace())%0A                .includeEnvironment()%0A                .includeEnd();%0A%0A        PandaMessengerMessage message = new PandaMessengerMessage(MessengerMessage.Level.FAILURE, templateBuilder.getAsLines(formatter, %22InterpreterFailure%22));%0A        messenger.sendMessage(message);%0A    %7D%0A%0A    @Override%0A    public Class%3CException%3E getType() %7B%0A        return Exception.class;%0A    %7D%0A%0A%7D%0A

Add ExceptionTranslator