2012-09-03 15:42:38 -04:00
The class check originated with the new Runescape engine update which took place around the 4xx revisions. It gives the Jagex servers the ability to check the modifiers, update, or fetch the value for a field. It also gives functionality to invoke a method with parameters and get it's return value, or check it's modifiers. Each of these functionalities are described with a request type. A class check request is built up with many of these request types.
2012-09-03 16:05:49 -04:00
== Return Codes ==
2012-09-03 16:17:01 -04:00
All the return codes are in descending priority by numerical order. For opcode 0, there are cases where a numeric value is sent to the server on fetch requests. This value is always a dword. For an method invoke request, there isn't a value that is sent to the server. It is just assumed that there wasn't a return object from the invoked method.
2012-09-03 15:50:32 -04:00
{| border=2px
! Opcode
2012-09-03 16:05:49 -04:00
! Name
2012-09-03 16:08:39 -04:00
! On Receive/Response
2012-09-03 15:50:32 -04:00
! Description
|-
! 0
2012-09-03 16:05:49 -04:00
! Successful
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 15:50:32 -04:00
! Successfully executed the request.
|-
2012-09-03 16:15:09 -04:00
! 1
! Successful - Returned numeric value
! Response
! Successfully executed the request, and returned a numeric value.
|-
! 2
! Successful - Returned string value
! Response
! Successfully executed the request, and returned a string value.
|-
! 4
! Successful - Returned object value
! Response
! Successfully executed the request, and returned an object value.
|-
2012-09-03 15:50:32 -04:00
! -1
2012-09-03 16:05:49 -04:00
! ClassNotFoundException
! Receive
! A ClassNotFoundException was thrown while receiving a request from the server.
2012-09-03 15:50:32 -04:00
|-
! -2
2012-09-03 16:05:49 -04:00
! SecurityException
! Receive
! A SecurityException was thrown while receiving a request from the server.
2012-09-03 15:50:32 -04:00
|-
! -3
2012-09-03 16:05:49 -04:00
! NullPointerException
2012-09-03 16:08:39 -04:00
! Receive
2012-09-03 16:05:49 -04:00
! A NullPointerException was thrown while receiving a request from the server.
2012-09-03 15:50:32 -04:00
|-
! -4
2012-09-03 16:05:49 -04:00
! Exception
2012-09-03 16:08:39 -04:00
! Receive
2012-09-03 16:05:49 -04:00
! An Exception was thrown while receiving a request from the server.
2012-09-03 15:50:32 -04:00
|-
! -5
2012-09-03 16:05:49 -04:00
! Throwable
2012-09-03 16:08:39 -04:00
! Receieve
2012-09-03 16:05:49 -04:00
! An error or exception was thrown while receiving a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -10
2012-09-03 16:05:49 -04:00
! ClassNotFoundException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! A ClassNotFoundException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -11
2012-09-03 16:05:49 -04:00
! InvalidClassException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! An InvalidClassException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -12
2012-09-03 16:05:49 -04:00
! StreamCorruptedException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! A StreamCorruptedException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -13
2012-09-03 16:05:49 -04:00
! OptionalDataException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! An OptionDataException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -14
2012-09-03 16:05:49 -04:00
! IllegalAccessException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! An IllegalAccessException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -15
2012-09-03 16:05:49 -04:00
! IllegalArgumentException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! An IllegalArgumentException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -16
2012-09-03 16:05:49 -04:00
! InvocationTargetException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! An InvocationTargetException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -17
2012-09-03 16:05:49 -04:00
! SecurityException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! A SecurityException was thrown while responding to a request from the server.
!
2012-09-03 15:54:51 -04:00
|-
! -18
2012-09-03 16:05:49 -04:00
! IOException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! An IOException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -19
2012-09-03 16:05:49 -04:00
! NullPointerException
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! A NullPointerException was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -20
2012-09-03 16:05:49 -04:00
! Exception
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! An Exception was thrown while responding to a request from the server.
2012-09-03 15:54:51 -04:00
|-
! -21
2012-09-03 16:05:49 -04:00
! Throwable
2012-09-03 16:08:39 -04:00
! Response
2012-09-03 16:05:49 -04:00
! An error or exception was thrown while receiving a request from the server.
2012-09-03 15:50:32 -04:00
|}