ballerina.runtime package
public struct CallStackElement
Field Name | Data Type | Description | Default Value |
---|---|---|---|
workerName | string | ||
packageName | string | ||
fileName | string | ||
lineNumber | int |
public struct IllegalStateException
Field Name | Data Type | Description | Default Value |
---|---|---|---|
message | string | ||
cause | error |
public struct NullReferenceException
Field Name | Data Type | Description | Default Value |
---|---|---|---|
message | string | ||
cause | error |
public function getCallStack ( ) ( CallStackElement[] )
Return Variable | Data Type | Description |
---|---|---|
CallStackElement[] |
public function getCurrentDirectory ( ) ( string )
Returns the current working directory.
Return Variable | Data Type | Description |
---|---|---|
string | Current working directory or an empty string if the current working directory cannot be determined |
public function getErrorCallStack ( error e ) ( CallStackElement[] )
Parameter Name | Data Type | Description |
---|---|---|
e | error |
Return Variable | Data Type | Description |
---|---|---|
CallStackElement[] |
public function getFileEncoding ( ) ( string )
Returns the charset encoding used in the runtime.
Return Variable | Data Type | Description |
---|---|---|
string | Encoding if it is available, an empty string otherwise |
public function getProperties ( ) ( map )
Returns all system properties.
Return Variable | Data Type | Description |
---|---|---|
map | All system properties |
public function getProperty ( string name ) ( string )
Returns the value associated with the specified property name.
Parameter Name | Data Type | Description |
---|---|---|
name | string | Name of the property |
Return Variable | Data Type | Description |
---|---|---|
string | Value of the property if the property exists, an empty string otherwise |
public function setProperty ( string name , string value )
Adds the given name, value pair to the system properties.
Parameter Name | Data Type | Description |
---|---|---|
name | string | Name of the property |
value | string | Value of the property |
public function sleepCurrentWorker ( int millis )
Halts the current worker for a predefined amount of time.
Parameter Name | Data Type | Description |
---|---|---|
millis | int | Amount of time to sleep in milliseconds |