/* * Copyright (C) 2010-2013 JPEXS * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package com.jpexs.decompiler.flash.action; import com.jpexs.decompiler.flash.action.treemodel.TreeItem; import java.util.List; import java.util.Stack; /** * Raised when actual address has been referenced with an unknown jump * * @author JPEXS */ public class UnknownJumpException extends RuntimeException { /** * Actual stack */ public Stack stack; /** * Actual address */ public long addr; /** * Output of the method before raising the exception */ public List output; /** * Constructor * * @param stack Actual stack * @param addr Actual address * @param output Output of the method before raising the exception */ public UnknownJumpException(Stack stack, long addr, List output) { this.stack = stack; this.addr = addr; this.output = output; } /** * Returns a string representation of the object * * @return a string representation of the object. */ @Override public String toString() { return "Unknown jump to " + addr; } }