.NET ScriptAPI Method Reference

.NET ScriptAPI Method Reference

Show / Hide Table of Contents
  • Attachmate.Verastream.HostIntegrator.ScriptAPI
    • AppConnAidKey
    • ApptrieveException
    • AttributeEventHandler
    • ColumnType
    • ColumnValue
    • ContextType
    • CursorPosition
    • DescriptionAttribute
    • EchoType
    • EntityEventHandler
    • ErrorMessage
    • EventHandlerConstant
    • EventHandlerType
    • EventInfo
    • EventTimeoutException
    • FieldEventHandler
    • HostColor
    • HostFont
    • IApplyFilterEvent
    • IAttributeEvent
    • IAttributeMetaData
    • IAuthenticateUserEvent
    • IClientConnectedEvent
    • IClientDisconnectedEvent
    • IClientSession
    • IClientSessionCreatedEvent
    • IClientSessionDestroyedEvent
    • IColumnMetaData
    • IEntityArrivalEvent
    • IEntityDepartureEvent
    • IEntityEvent
    • IEntityMoveCursorEvent
    • IErrorReportedEvent
    • IEvent
    • IEventHandler
    • IExecuteLoginEvent
    • IExecuteLogoutEvent
    • IExecuteOperationEvent
    • IExecuteProcedureEvent
    • IFieldEvent
    • IFieldLocation
    • IFieldMetaData
    • IFormatErrorEvent
    • IGetCurrentHostRecordEvent
    • IGetRecordTypeEvent
    • IHostSession
    • IHostSessionCreatedEvent
    • IHostSessionDestroyedEvent
    • IHostSessionEvent
    • IInsertRecordEvent
    • IIsTerminatedEvent
    • ILifeCycleEvent
    • ILinearTerminalRegion
    • ILogger
    • IMetaData
    • IModelContext
    • IModelCursorEvent
    • IModelEvent
    • IModelLoadedEvent
    • IModelMoveCursorBackwardEvent
    • IModelMoveCursorEvent
    • IModelMoveCursorForwardEvent
    • IModelRecord
    • IModelRecordSet
    • IModelUnloadedEvent
    • IMutableProcedureRecord
    • IMutableProcedureRecordSet
    • IOperationMetaData
    • IParseRecordEvent
    • IParseScreenEvent
    • IProcedureMetaData
    • IProcedureParameters
    • IProcedureRecord
    • IProcedureRecordSet
    • IProcessStringEvent
    • IReadAttributeEvent
    • IReadFieldEvent
    • IRecord
    • IRecordEvent
    • IRecordLocation
    • IRecordSet
    • IRecordSetContext
    • IRecordSetEvent
    • IRecordSetMetaData
    • IRecordSetScreen
    • IRectangularTerminalRegion
    • IScriptHostSession
    • ITerminalAttributes
    • ITerminalCell
    • ITerminalRegion
    • IUnrecognizedScreenEvent
    • IUpdateRecordEvent
    • IVariableMetaData
    • IWriteAttributeEvent
    • IWriteAttributesEvent
    • IWriteFieldEvent
    • IndexValue
    • LifeCycleEventHandler
    • MetaDataType
    • ModelEventHandler
    • OperationEventHandler
    • ProcedureEventHandler
    • ProcedureType
    • RecordSetEventHandler
    • RecordType
    • RegionType
    • RowValue
    • ScreenSize
    • ScrollDirection
    • ScrollMovement
    • TimeoutAttribute
    • VariableInitialization
    • VariableKind
  • Attachmate.Verastream.HostIntegrator.ScriptAPI.Command
    • CheckOperationConditions
    • Command
    • DefaultValue
    • MoveCursor
    • Navigate
    • ReadFromMappedAttribute
    • ReadVariableFromAttribute
    • ReadVariableFromField
    • ReadVariableFromLocation
    • ReadVariableFromTerminal
    • ResetRecordSet
    • Transmit
    • TransmitTerminalKey
    • TransmitToAttribute
    • TransmitToField
    • TransmitToLocation
    • TransmitToOffset
    • UpdateAttribute
    • UpdateAttributes
    • UpdateRecordSetField
    • UpdateRecordSetFields
    • WaitForCommString
    • WaitForCondition
    • WaitForCursorAtAttribute
    • WaitForCursorAtLocation
    • WaitForCursorAtRecordSetField
    • WaitForCursorAtTerminalField
    • WaitForCursorNotAtLocation
    • WaitForCursorNotAtTerminalField
    • WaitForDisplayString
    • WaitForHostSilence
    • WaitForKeyboardEnabled
    • WaitForMultipleEvents
    • WaitForNewHostScreen
    • WaitForUpdate
    • WaitMS
    • WriteToMappedAttribute
    • WriteVariableToAttribute
    • WriteVariableToField
    • WriteVariableToLocation
    • WriteVariableToTerminal
  • WRQ.Verastream.HostIntegrator
    • RcConst

Class ErrorMessage

Describes a single runtime error.

Inheritance
object
ErrorMessage
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Attachmate.Verastream.HostIntegrator.ScriptAPI
Assembly: Attachmate.Verastream.HostIntegrator.ScriptAPI.dll
Syntax
[Serializable]
public class ErrorMessage
Remarks

An ErrorMessage has an error code, zero or more parameters, generic error text, and localized error text. Error parameters can either be objects of type string or integer. Objects of this type are immutable.

To create an ErrorMessage object in an event handler, use the
appropriate <xref href="Attachmate.Verastream.HostIntegrator.ScriptAPI.IEvent.CreateErrorMessage(System.Int32%2cSystem.Object%5b%5d)" data-throw-if-not-resolved="false"></xref>
method.

Constructors

ErrorMessage(int, object[], string, string)

Construct an ErrorMessage.

Declaration
public ErrorMessage(int code, object[] parameters, string mesg, string localizedMesg)
Parameters
Type Name Description
int code

error code

object[] parameters

message parameters

string mesg

generic message text

string localizedMesg

localized message text

ErrorMessage(int, string, string)

Construct an ErrorMessage.

Declaration
public ErrorMessage(int code, string mesg, string localizedMesg)
Parameters
Type Name Description
int code

error code

string mesg

generic message text

string localizedMesg

localized message text

Fields

USER_GENERIC

Error code for a generic user-defined error.

Declaration
public static readonly int USER_GENERIC
Field Value
Type Description
int

Properties

ErrorCode

Return the error code.

Declaration
public virtual int ErrorCode { get; }
Property Value
Type Description
int

returns code representing error condition

LocalizedText

Get a localized textual description of the error.

Declaration
public virtual string LocalizedText { get; }
Property Value
Type Description
string

returns localized error text

ParameterCount

Get the number of parameters in this error message.

Declaration
public virtual int ParameterCount { get; }
Property Value
Type Description
int

returns number of parameters

Text

Get a textual description of the error.

Declaration
public virtual string Text { get; }
Property Value
Type Description
string

returns error text

Methods

GetParameter(int)

Get a specific parameter.

Declaration
public virtual object GetParameter(int index)
Parameters
Type Name Description
int index

parameter index

Returns
Type Description
object

error parameter as String or Integer

ToString()

Returns a textual description of the error.

Declaration
public override string ToString()
Returns
Type Description
string

returns the text of this error message

Overrides
object.ToString()
In This Article
Back to top © 1985-2024 Rocket Software, Inc. or its affiliates. All Rights Reserved