modules/cldc-compact/src/main/java/java/lang/Error.java
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// SquirrelJME
// Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the Mozilla Public License Version 2.0.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------
package java.lang;
import cc.squirreljme.runtime.cldc.annotation.Api;
/**
* This is the base class for non-checked errors.
*
* @since 2016/02/26
*/
@Api
public class Error
extends Throwable
{
/**
* Initializes the error with no message or cause.
*
* @since 2018/09/16
*/
@Api
public Error()
{
}
/**
* Initializes the error with a message and no cause.
*
* @param __m The message to use.
* @since 2018/09/16
*/
@Api
public Error(String __m)
{
super(__m);
}
/**
* Initializes the error with a message and the given cause.
*
* @param __m The message to use.
* @param __t The cause of this error.
* @since 2018/09/16
*/
@Api
public Error(String __m, Throwable __t)
{
super(__m);
}
/**
* Initializes the error with no message and the given cause.
*
* @param __t The cause of this error.
* @since 2018/09/16
*/
@Api
public Error(Throwable __t)
{
super(__t);
}
}