Skip to content

Create error handler Class #9

@beumerr

Description

@beumerr

The error class should be located in: root/admin/inc/QC_error

Study this page to design error hierarchies.

Attributes used to create error:

  • function where error happens.
  • message of what went wrong.
    error version control will be a future feature

Class attributes:
public $errors = [];

Class methods:

  • usage_error - Call this function when used the wrong way
  • system_error - Call this function when system has error
  • draw_error - Display all errors

QC_panel.php

  • Add draw_error hook underneath tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions