!exceptions.avt

Переключить прокрутку окна
Загрузить этот исходный код

/*
    Реализация среды исполнения языка программирования
    Объектно-ориентированный продвинутый векторный транслятор

    Copyright © 2021, 2024 Малик Разработчик

    Это свободная программа: вы можете перераспространять ее и/или изменять
    ее на условиях Меньшей Стандартной общественной лицензии GNU в том виде,
    в каком она была опубликована Фондом свободного программного обеспечения;
    либо версии 3 лицензии, либо (по вашему выбору) любой более поздней версии.

    Эта программа распространяется в надежде, что она будет полезной,
    но БЕЗО ВСЯКИХ ГАРАНТИЙ; даже без неявной гарантии ТОВАРНОГО ВИДА
    или ПРИГОДНОСТИ ДЛЯ ОПРЕДЕЛЕННЫХ ЦЕЛЕЙ. Подробнее см. в Меньшей Стандартной
    общественной лицензии GNU.

    Вы должны были получить копию Меньшей Стандартной общественной лицензии GNU
    вместе с этой программой. Если это не так, см.
    <https://www.gnu.org/licenses/>.
*/

package avt.lang;

public class ArithmeticException(RuntimeException)
{
    private static Throwable create(long codePointerOverride) {
        Throwable result = null;
        try
        {
            result = new ArithmeticException(package.getResourceString("arithmetic"), codePointerOverride);
        }
        catch(Throwable exception)
        {
            return exception;
        }
        return result;
    }

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    private (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class ArrayIndexOutOfBoundsException(IndexOutOfBoundsException)
{
    private static Throwable create(long codePointerOverride) {
        Throwable result = null;
        try
        {
            result = new ArrayIndexOutOfBoundsException(package.getResourceString("out-of-bounds.array-index"), codePointerOverride);
        }
        catch(Throwable exception)
        {
            return exception;
        }
        return result;
    }

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    private (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class ArrayStoreException(RuntimeException)
{
    private Class fldSaving;
    private Class fldRequired;

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    public String toString() {
        Class saving = fldSaving;
        Class required = fldRequired;
        String eoln = Platform.instance.lineSeparator;
        return (new StringBuilder() + super.toString()
            + eoln + package.getResourceString("property.array-store-exception.saving") + (saving == null ? "null" : saving.canonicalName)
            + eoln + package.getResourceString("property.array-store-exception.required") + (required == null ? "null" : required.canonicalName)
        ).toString();
    }

    public final Class saving { read = fldSaving, write = fldSaving }

    public final Class required { read = fldRequired, write = fldRequired }
}

public class ClassCastException(RuntimeException)
{
    private Class fldSource;
    private Class fldDestination;

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    public String toString() {
        Class source = fldSource;
        Class destination = fldDestination;
        String eoln = Platform.instance.lineSeparator;
        return (new StringBuilder() + super.toString()
            + eoln + package.getResourceString("property.class-cast-exception.source") + (source == null ? "null" : source.canonicalName)
            + eoln + package.getResourceString("property.class-cast-exception.destination") + (destination == null ? "null" : destination.canonicalName)
        ).toString();
    }

    public final Class source { read = fldSource, write = fldSource }

    public final Class destination { read = fldDestination, write = fldDestination }
}

public class ClassNotFoundException(ReflectiveObjectNotFoundException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class CloneNotSupportedException(UnsupportedOperationException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class IllegalAccessException(ReflectiveOperationException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class IllegalArgumentException(RuntimeException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class IllegalArrayLengthException(IllegalPropertyValueException)
{
    private static Throwable create(long codePointerOverride) {
        Throwable result = null;
        try
        {
            result = new IllegalArrayLengthException(package.getResourceString("illegal-property.array.length"), codePointerOverride);
        }
        catch(Throwable exception)
        {
            return exception;
        }
        return result;
    }

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    private (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class IllegalMonitorStateException(IllegalStateException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class IllegalPropertyValueException(IllegalArgumentException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class IllegalStateException(RuntimeException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class IllegalThreadStateException(IllegalStateException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class ImmutableStateException(IllegalStateException)
{
    private static Throwable create(long codePointerOverride) {
        Throwable result = null;
        try
        {
            result = new ImmutableStateException(package.getResourceString("illegal-state.immutable"), codePointerOverride);
        }
        catch(Throwable exception)
        {
            return exception;
        }
        return result;
    }

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    private (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class IndexOutOfBoundsException(OutOfBoundsException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class InstantiationException(ReflectiveOperationException)
{
    private Class fldType;

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    public String toString() {
        Class type = fldType;
        String eoln = Platform.instance.lineSeparator;
        return (new StringBuilder() + super.toString()
            + eoln + package.getResourceString("property.instantiation-exception.type") + (type == null ? "null" : type.canonicalName)
        ).toString();
    }

    public final Class type { read = fldType, write = fldType }
}

public class InterruptedException(Exception)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class NegativeArrayLengthException(RuntimeException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class NullPointerException(RuntimeException)
{
    private static Throwable create(long codePointerOverride) {
        Throwable result = null;
        try
        {
            result = new NullPointerException(package.getResourceString("null-pointer"), codePointerOverride);
        }
        catch(Throwable exception)
        {
            return exception;
        }
        return result;
    }

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    private (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class NumberFormatException(IllegalArgumentException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class OutOfBoundsException(RuntimeException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}

public class PackageNotFoundException(ReflectiveObjectNotFoundException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class RawDataOffsetOutOfBoundsException(OutOfBoundsException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class ReflectiveObjectNotFoundException(ReflectiveOperationException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class ReflectiveOperationException(Exception)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class SecurityException(RuntimeException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class StringIndexOutOfBoundsException(IndexOutOfBoundsException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class UnsupportedOperationException(RuntimeException)
{
    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }
}

public class VectorIndexOutOfBoundsException(IndexOutOfBoundsException)
{
    private static Throwable create(long codePointerOverride) {
        Throwable result = null;
        try
        {
            result = new VectorIndexOutOfBoundsException(package.getResourceString("out-of-bounds.vector-index"), codePointerOverride);
        }
        catch(Throwable exception)
        {
            return exception;
        }
        return result;
    }

    public () {  }

    public (Throwable cause): super(cause) {  }

    public (String message): super(message) {  }

    public (String message, Throwable cause): super(message, cause) {  }

    private (String message, long codePointerOverride): super(message, codePointerOverride) {  }
}