create custom exceptions
This commit is contained in:
parent
6606d09dce
commit
72bfa3fb2c
3 changed files with 93 additions and 0 deletions
16
CRM/Twingle/Exceptions/ProfileException.php
Normal file
16
CRM/Twingle/Exceptions/ProfileException.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* A simple custom exception that indicates a problem within the
|
||||
* CRM_Twingle_Profile class
|
||||
*/
|
||||
class CRM_Twingle_Exceptions_ProfileException extends CRM_Twingle_Exceptions_BaseException {
|
||||
|
||||
public const ERROR_CODE_PROFILE_NOT_FOUND = 'profile_not_found';
|
||||
public const ERROR_CODE_DEFAULT_PROFILE_NOT_FOUND = 'default_profile_not_found';
|
||||
public const ERROR_CODE_COULD_NOT_SAVE_PROFILE = 'could_not_save_profile';
|
||||
public const ERROR_CODE_COULD_NOT_RESET_PROFILE = 'could_not_reset_profile';
|
||||
public const ERROR_CODE_COULD_NOT_DELETE_PROFILE = 'could_not_delete_profile';
|
||||
public const ERROR_CODE_UNKNOWN_PROFILE_ATTRIBUTE = 'unknown_profile_attribute';
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue