first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
|
||||
class FW_Form_Invalid_Submission_Exception extends Exception {
|
||||
|
||||
private $errors = array();
|
||||
|
||||
public function __construct( array $errors ) {
|
||||
parent::__construct();
|
||||
|
||||
$this->set_errors( $errors );
|
||||
}
|
||||
|
||||
public function get_errors() {
|
||||
return $this->errors;
|
||||
}
|
||||
|
||||
protected function set_errors( array $errors ) {
|
||||
$this->errors = $errors;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
|
||||
class FW_Form_Not_Found_Exception extends Exception {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user