LogError constructor
Creates a new LogError instance.
error: The error code (positive or zero for success, negative for failure).message: An optional description of the error (defaults to an empty string).data: Optional additional data related to the error.
Implementation
LogError(this.error, {this.message = '', this.data});