public class

ErrorLogGenerator

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.client.ErrorLogGenerator

Class Overview

An error log generator.

Summary

Constants
int ERRORLOG_VERSION
Public Constructors
ErrorLogGenerator(Throwable t)
Public Methods
String addRecord(String key, Object value)
Add a new record.
String dumpTo(String folder, String filename)
String dumpTo(String folder)
String getLog()
LinkedHashMap<String, String> getRecords()
Throwable getThrowable()
void recordEnginesInformation(IEnginesContext engctx)
boolean removeRecord(String key)
boolean setRecord(String key, Object value)
Add a new or replace an existing record.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ERRORLOG_VERSION

Constant Value: 2 (0x00000002)

Public Constructors

public ErrorLogGenerator (Throwable t)

Public Methods

public String addRecord (String key, Object value)

Add a new record. If a record with a similar key exists, it will *not* be replaced.

Returns
  • the actual key that was used to register the record

public String dumpTo (String folder, String filename)

public String dumpTo (String folder)

public String getLog ()

public LinkedHashMap<String, String> getRecords ()

public Throwable getThrowable ()

public void recordEnginesInformation (IEnginesContext engctx)

public boolean removeRecord (String key)

Returns
  • true if the record was removed

public boolean setRecord (String key, Object value)

Add a new or replace an existing record.

Returns
  • true if the key did not exist, false if a record having a same key was replaced

public String toString ()