    001/*
    002 * Licensed to the Apache Software Foundation (ASF) under one
    003 * or more contributor license agreements.  See the NOTICE file
    004 * distributed with this work for additional information
    005 * regarding copyright ownership.  The ASF licenses this file
    006 * to you under the Apache License, Version 2.0 (the
    007 * "License"); you may not use this file except in compliance
    008 * with the License.  You may obtain a copy of the License at
    009 *
    010 *   https://www.apache.org/licenses/LICENSE-2.0
    011 *
    012 * Unless required by applicable law or agreed to in writing,
    013 * software distributed under the License is distributed on an
    014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    015 * KIND, either express or implied.  See the License for the
    016 * specific language governing permissions and limitations
    017 * under the License.
    018 */
    019package org.apache.bcel.verifier.exc;
    020
    021/**
    022 * Instances of this class are thrown by BCEL's class file verifier "JustIce" when a class file to verify does not pass
    023 * the verification pass 3 because of a violation of a structural constraint as described in the Java Virtual Machine
    024 * Specification, 2nd edition, 4.8.2, pages 137-139. Note that the notion of a "structural" constraint is somewhat
    025 * misleading. Structural constraints are constraints on relationships between Java virtual machine instructions. These
    026 * are the constraints where data-flow analysis is needed to verify if they hold. The data flow analysis of pass 3 is
    027 * called pass 3b in JustIce.
    028 */
    029public class StructuralCodeConstraintException extends CodeConstraintException {
    030    private static final long serialVersionUID = 5406842000007181420L;
    031
    032    /**
    033     * Constructs a new StructuralCodeConstraintException with null as its error message string.
    034     */
    035    public StructuralCodeConstraintException() {
    036    }
    037
    038    /**
    039     * Constructs a new StructuralCodeConstraintException with the specified error message.
    040     */
    041    public StructuralCodeConstraintException(final String message) {
    042        super(message);
    043    }
    044}