Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProcessingError.php
Go to the documentation of this file.
1 <?php
8 
16 {
17  const ERROR_LEVEL_CRITICAL = 'critical';
18  const ERROR_LEVEL_NOT_CRITICAL = 'not-critical';
19  const ERROR_LEVEL_WARNING = 'warning';
20  const ERROR_LEVEL_NOTICE = 'notice';
21 
25  protected $errorCode;
26 
30  protected $errorMessage;
31 
35  protected $errorDescription;
36 
40  protected $rowNumber;
41 
45  protected $columnName;
46 
50  protected $errorLevel;
51 
61  public function init(
62  $errorCode,
63  $errorLevel = null,
64  $rowNumber = null,
65  $columnName = null,
66  $errorMessage = null,
67  $errorDescription = null
68  ) {
69  $this->errorCode = $errorCode;
70  $this->errorLevel = $errorLevel;
71  $this->rowNumber = $rowNumber;
72  $this->columnName = $columnName;
73  $this->errorMessage = $errorMessage;
74  $this->errorDescription = $errorDescription;
75  }
76 
80  public function getErrorCode()
81  {
82  return $this->errorCode;
83  }
84 
88  public function getErrorMessage()
89  {
90  return $this->errorMessage;
91  }
92 
96  public function getRowNumber()
97  {
98  return $this->rowNumber;
99  }
100 
104  public function getColumnName()
105  {
106  return $this->columnName;
107  }
108 
112  public function getErrorLevel()
113  {
114  return $this->errorLevel;
115  }
116 
120  public function getErrorDescription()
121  {
123  }
124 }
init( $errorCode, $errorLevel=null, $rowNumber=null, $columnName=null, $errorMessage=null, $errorDescription=null)