NotJanusConnection class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 24: Line 24:




<h2>New constructor</h2>
==New constructor==
{{Template:NotJanusConnection:New subtitle}}
{{Template:NotJanusConnection:New subtitle}}


Line 31: Line 31:
<h3>Syntax</h3>
<h3>Syntax</h3>
{{Template:NotJanusConnection:New syntax}}
{{Template:NotJanusConnection:New syntax}}
<h4>Syntax terms</h4>
<h4>Syntax terms</h4>
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%notJanusConnection</th>
<tr><th>%notJanusConnection</th>
<td>A reference to an instance of a <var>NotJanusConnection</var> object.</td></tr>
<td>A reference to an instance of a <var>NotJanusConnection</var> object.</td></tr>
<tr><th><var>%(NotJanusConnection)</var></th><td>The class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|"Usage notes"]], below, for more information about invoking a <var>NotJanusConnection</var> <var>Constructor</var>.</td></tr>
 
<tr><th><var>[%(NotJanusConnection):]</var></th><td>The class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|"Usage notes"]], below, for more information about invoking a <var>NotJanusConnection</var> <var>Constructor</var>.</td></tr>
</table>
</table>



Revision as of 18:08, 7 August 2012

The NotJanusConnection exception class indicates that the method call originated on a thread whose associated Janus port is not a Janus server type (WEBSERV, TNSERV, SRVSOCK).

A system method that throws this exception is ClientCertificate.

To produce a NotJanusConnection exception for yourself, you typically use a User Language Throw statement calling the NotJanusConnection New constructor:

throw %(NotJanusConnection):new

The only method of the NotJanusConnection exception class is the New constructor. The class has no properties.

This class is available as of Sirius Mods Version 8.0.


The NotJanusConnection methods

The following are the available NotJanusConnection class methods.

MethodDescription
NewCreate a new NotJanusConnection object

The methods in the class are described in the subsections that follow. In addition:


New constructor

Create a new NotJanusConnection object (NotJanusConnection class)

[Introduced in Sirius Mods 8.0]

This method generates an instance of an NotJanusConnection exception. The New method format is as follows:

Syntax

%notJanusConnection = [%(NotJanusConnection):]New

Syntax terms

%notJanusConnection A reference to an instance of a NotJanusConnection object.
[%(NotJanusConnection):]The class name in parentheses denotes a Constructor. See "Usage notes", below, for more information about invoking a NotJanusConnection Constructor.

Usage notes

  • As described in "Using New or other Constructors", New can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is Null:

    %notjanus = new %notjanus = %(NotJanusConnection):new %notjanus = %notjanus:new