rswiki-book/Class-Check.mediawiki
2015-06-13 00:12:28 -04:00

103 lines
2.7 KiB
Plaintext

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.
== Return Codes ==
All the return codes are in descending priority by numerical order.
{| border=2px
! Opcode
! Name
! On Receive/Respond
! Description
|-
! 0
! Successful
! Respond
! Successfully executed the request.
|-
! -1
! ClassNotFoundException
! Receive
! A ClassNotFoundException was thrown while receiving a request from the server.
|-
! -2
! SecurityException
! Receive
! A SecurityException was thrown while receiving a request from the server.
|-
! -3
! Receive
! NullPointerException
! A NullPointerException was thrown while receiving a request from the server.
|-
! -4
! Receive
! Exception
! An Exception was thrown while receiving a request from the server.
|-
! -5
! Receive
! Throwable
! An error or exception was thrown while receiving a request from the server.
|-
! -10
! Respond
! ClassNotFoundException
! A ClassNotFoundException was thrown while responding to a request from the server.
|-
! -11
! Respond
! InvalidClassException
! An InvalidClassException was thrown while responding to a request from the server.
|-
! -12
! Response
! StreamCorruptedException
! A StreamCorruptedException was thrown while responding to a request from the server.
|-
! -13
! Response
! OptionalDataException
! An OptionDataException was thrown while responding to a request from the server.
|-
! -14
! Response
! IllegalAccessException
! An IllegalAccessException was thrown while responding to a request from the server.
|-
! -15
! Response
! IllegalArgumentException
! An IllegalArgumentException was thrown while responding to a request from the server.
|-
! -16
! Response
! InvocationTargetException
! An InvocationTargetException was thrown while responding to a request from the server.
|-
! -17
! Response
! SecurityException
! A SecurityException was thrown while responding to a request from the server.
!
|-
! -18
! Response
! IOException
! An IOException was thrown while responding to a request from the server.
|-
! -19
! Response
! NullPointerException
! A NullPointerException was thrown while responding to a request from the server.
|-
! -20
! Response
! Exception
! An Exception was thrown while responding to a request from the server.
|-
! -21
! Response
! Throwable
! An error or exception was thrown while receiving a request from the server.
|}