Taking a short break.
[SquirrelJME.git] / modules / vendor-api-ntt-docomo-doja / src / main / java / com / nttdocomo / ui / UIException.java
blobe8f7f72fb0d9a1f21152fe80466e4541c407b1a7
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package com.nttdocomo.ui;
12 import cc.squirreljme.runtime.cldc.annotation.Api;
14 /**
15 * This is thrown when there is an exception in the code.
17 * @since 2021/11/30
19 @Api
20 public class UIException
21 extends RuntimeException
23 @Api
24 public static final int BUSY_RESOURCE = 3;
26 @Api
27 public static final int ILLEGAL_STATE = 1;
29 @Api
30 public static final int NO_RESOURCES = 2;
32 @Api
33 public static final int STATUS_FIRST = 0;
35 @Api
36 public static final int STATUS_LAST = 63;
38 @Api
39 public static final int UNDEFINED = 0;
41 @Api
42 public static final int UNSUPPORTED_FORMAT = 4;
44 /** Represents the status of the exception. */
45 private final int _status;
47 @Api
48 public UIException()
50 this(UIException.UNDEFINED);
53 @Api
54 public UIException(int __status)
56 this(__status, null);
59 @Api
60 public UIException(int __status, String __message)
62 super(__message);
64 this._status = __status;
67 @Api
68 public int getStatus()
70 return this._status;