public method ErrorEvent.create
Overview
Constructs and returns a new instance of the class with the provided name, event date, and error message
Declaration
function create(name, eventDate, errorMessage)
public static ErrorEvent create(String name, Date eventDate, String errorMessage);
public static ErrorEvent create(string name, DateTime eventDate, string errorMessage);
Parameters
| Name | Description |
|---|---|
| name | A string that represents the name of the object instance being created |
| eventDate | The event date |
| errorMessage | A string represents the event message |
Returns
The method returns an instance of ErrorEvent class with the provided name, event date, and error message
Details
Declared in ErrorEvent