action = $action; $this->subject = $subject; $this->message_front = $message_front; parent::__construct( $message, $code, $previous ); } public function __toString() { return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; } public function toLog( $one_line = true ) { if ( $one_line ) { return '[Exception][action: ' . $this->action . ' | subject: ' . $this->subject . ' | message: ' . $this->message . ' | message_front: ' . $this->message_front . ' | code: ' . $this->code . ']'; } return PHP_EOL . '[Exception] [ action : ' . $this->action . ' subject : ' . $this->subject . ' message : ' . $this->message . ' message_front : ' . $this->message_front . ' code : ' . $this->code . ' ]' . PHP_EOL; } public function getAction() { return $this->action; } public function getSubject() { return $this->subject; } public function getMessageFront() { return $this->message_front; } }