1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package android.jvmti.cts;
17 
18 public interface JvmtiErrors {
19   public static int NONE                                              = 0;
20 
21   public static int INVALID_THREAD                                    = 10;
22   public static int INVALID_THREAD_GROUP                              = 11;
23   public static int INVALID_PRIORITY                                  = 12;
24   public static int THREAD_NOT_SUSPENDED                              = 13;
25   public static int THREAD_SUSPENDED                                  = 14;
26   public static int THREAD_NOT_ALIVE                                  = 15;
27 
28   public static int INVALID_OBJECT                                    = 20;
29   public static int INVALID_CLASS                                     = 21;
30   public static int CLASS_NOT_PREPARED                                = 22;
31   public static int INVALID_METHODID                                  = 23;
32   public static int INVALID_LOCATION                                  = 24;
33   public static int INVALID_FIELDID                                   = 25;
34 
35   public static int NO_MORE_FRAMES                                    = 31;
36   public static int OPAQUE_FRAME                                      = 32;
37   public static int TYPE_MISMATCH                                     = 34;
38   public static int INVALID_SLOT                                      = 35;
39 
40   public static int DUPLICATE                                         = 40;
41   public static int NOT_FOUND                                         = 41;
42 
43   public static int INVALID_MONITOR                                   = 50;
44   public static int NOT_MONITOR_OWNER                                 = 51;
45   public static int INTERRUPT                                         = 52;
46 
47   public static int INVALID_CLASS_FORMAT                              = 60;
48   public static int CIRCULAR_CLASS_DEFINITION                         = 61;
49   public static int FAILS_VERIFICATION                                = 62;
50   public static int UNSUPPORTED_REDEFINITION_METHOD_ADDED             = 63;
51   public static int UNSUPPORTED_REDEFINITION_SCHEMA_CHANGED           = 64;
52   public static int INVALID_TYPESTATE                                 = 65;
53   public static int UNSUPPORTED_REDEFINITION_HIERARCHY_CHANGED        = 66;
54   public static int UNSUPPORTED_REDEFINITION_METHOD_DELETED           = 67;
55   public static int UNSUPPORTED_VERSION                               = 68;
56   public static int NAMES_DONT_MATCH                                  = 69;
57 
58   public static int UNSUPPORTED_REDEFINITION_CLASS_MODIFIERS_CHANGED  = 70;
59   public static int UNSUPPORTED_REDEFINITION_METHOD_MODIFIERS_CHANGED = 71;
60   public static int UNMODIFIABLE_CLASS                                = 79;
61 
62   public static int NOT_AVAILABLE                                     = 98;
63   public static int MUST_POSSESS_CAPABILITY                           = 99;
64 
65   public static int NULL_POINTER                                      = 100;
66   public static int ABSENT_INFORMATION                                = 101;
67   public static int INVALID_EVENT_TYPE                                = 102;
68   public static int ILLEGAL_ARGUMENT                                  = 103;
69   public static int NATIVE_METHOD                                     = 104;
70   public static int CLASS_LOADER_UNSUPPORTED                          = 106;
71 
72   public static int OUT_OF_MEMORY                                     = 110;
73   public static int ACCESS_DENIED                                     = 111;
74   public static int WRONG_PHASE                                       = 112;
75   public static int INTERNAL                                          = 113;
76   public static int UNATTACHED_THREAD                                 = 115;
77   public static int INVALID_ENVIRONMENT                               = 116;
78 }
79