Aztec® Programming Language
Version 1.1 Alpha 2

Copyright © 2010-2017, Aztec Development Group, All Rights Reserved

Download Aztec

Search        Contact Us

It's okay to eat fish...

'Cause they don't have any feelings.

- Kurt Cobain

 

aztec.io.StreamException

public class StreamException from<ExceptionEvent>

Base

Event

ExceptionEvent

StreamException

The StreamException class is used to report a variety of different I/O errors within the StreamIO family of classes. Each type of error has a separate integer identifier, and this class provides constants which represent those error values. The class also provides a reference to the StreamIO object where the exception occurred.

StreamException Methods

StreamException() Constructor for the StreamException class
IOError() Returns I/O Error identifier for the error which occurred
Stream() Returns reference to the StreamIO object which encountered the exception

StreamException Constants

Constant Data Item Data Type Value
StreamException.FileNotFound int 1
StreamException.AccessError int 2
StreamException.SystemError int 3
StreamException.MemoryError int 4
StreamException.LimitError int 5
StreamException.EOSError int 6
StreamException.NotReadable int 7
StreamException.NotWritable int 8
StreamException.NotOpen int 9
StreamException.InvalidTextCharacter int 10
StreamException.SizeOverflow int 11

Derived Classes

See Also

  


StreamException()

public method StreamException(StreamIO Stream, int IOError)

Parameters

Stream

StreamIO reference for exception

int

Error identifier for the exception

Return Value

None

Description

Constructor for the StreamException class using a reference to the corresponding StreamIO object and the error id.

 

StreamException Class


IOError()

public method<int> IOError()

Parameters

None

Return Value

Error id

Description

This method returns the error identifier associated with the I/O exception. This class contains predefined constants for all I/O errors.

 

StreamException Class


Stream()

public method<StreamIO> Stream()

Parameters

None

Return Value

StreamIO object where exception occurred

Description

This method returns a reference to the StreamIO object where the exception occurred.

 

StreamException Class

 

Copyright © 2010-2017

Aztec Development Group

All Rights Reserved

Download Aztec