2.2.3 - Error Return Object - JdlError

John W. Campbell Introduction

This is a class used to return error information from methods. It is used extensively throughout this package. The JdlError object returns a logical flag indicating whether or not an error was found, a numerical flag indicating the nature of the error and two message strings which may be used to return descriptions of the error condition. The returned items are accessed as public fields.

Constructor, Fields and Methods:

Class Details
Accessible Fields
Clear Error Method Class Details

Class name:
Class definition:
public class JdlError
none Accessible Fields

The following accessible fields have been defined:

public boolean err
Error flag = true error, = false OK - 'err'.
public int flag
Error type (Dependent on method where the object is used to return error status) - 'flag'
public String msg1
Error message 1 (may be null) - 'msg1'
public String msg2
Error message 2 (may be null) - 'msg2' Constructor Introduction

A single constructor is available.


Constructor 1 Constructor 1

Create a JdlError object with error flags set to false and 0 and with null messages.

Constructor Definition:
public JdlError()
Parameters List:
none Clear Error Method Introduction

A single method is available to clear the contents of the JdlError object.


Clear error object - clear Clear error object - clear

This clears the contents of the JdlError object setting 'err = false', 'flag = 0', 'msg1 = null' and 'msg2 = null'.

Method Definition:
public void clear()
Parameters List:

⇑ Up 2   ⇑ Up 1   ⇑ Top of this