1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548
|
<?php
/**
* This file contains all exceptions for Zoph
*
* An exception name should start with the name of the class it is used in.
*
* Zoph is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Zoph is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with Zoph; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @author Jeroen Roos
* @package zophException
*/
use organiser\Exception as organiserException;
/**
* This class is a general exception class for Zoph
* @author Jeroen Roos
* @package zophException
*/
class zophException extends Exception {}
/**
* Exception class for controller-related exceptions
* @author Jeroen Roos
* @package zophException
*/
class controllerException extends zophException {}
/**
* Exception class for configuration-related exceptions
* @author Jeroen Roos
* @package zophException
*/
class configurationException extends zophException {}
/**
* Exception: zoph.ini can not be found
* @author Jeroen Roos
* @package zophException
*/
class zophININotFoundException extends configurationException {}
/**
* Exception: zoph.ini can not be read
* @author Jeroen Roos
* @package zophException
*/
class zophININotReadableException extends configurationException {}
/**
* Exception: setting is missing from zoph.ini
* @author Jeroen Roos
* @package zophException
*/
class zophINIMissingSettingException extends configurationException {}
/**
* Exception: instance can not be found
* @author Jeroen Roos
* @package zophException
*/
class zophINIInstanceNotFoundException extends configurationException {}
/**
* Exceptions for person
* @author Jeroen Roos
* @package zophException
*/
class personException extends organiserException {}
/**
* Cannot find person
* @author Jeroen Roos
* @package zophException
*/
class personNotFoundException extends personException {}
/**
* Exceptions for places
* @author Jeroen Roos
* @package zophException
*/
class placeException extends organiserException {}
/**
* Cannot find place
* @author Jeroen Roos
* @package zophException
*/
class placeNotFoundException extends placeException {}
/**
* Exceptions for albums
* @author Jeroen Roos
* @package zophException
*/
class albumException extends organiserException {}
/**
* Cannot find album
* @author Jeroen Roos
* @package zophException
*/
class albumNotFoundException extends albumException {}
/**
* Exceptions for categories
* @author Jeroen Roos
* @package zophException
*/
class categoryException extends organiserException {}
/**
* find category
* @author Jeroen Roos
* @package zophException
*/
class categoryNotFoundException extends categoryException {}
/**
* Exceptions for data errors
* @author Jeroen Roos
* @package zophException
*/
class dataException extends zophException {}
/**
* A value that may not be NULL is NULL
* @author Jeroen Roos
* @package zophException
*/
class notNullValueIsNullDataException extends dataException {}
/**
* A circular reference is found or created
* @author Jeroen Roos
* @package zophException
*/
class circularReferenceException extends dataException {}
/**
* Exceptions for pages and pagesets
* @author Jeroen Roos
* @package zophException
*/
class pageException extends zophException {}
/**
* The pageset contains no pages
* @author Jeroen Roos
* @package zophException
*/
class pagePagesetHasNoPagesException extends pageException {}
/**
* No pageset exception
* @author Jeroen Roos
* @package zophException
*/
class pageNoPagesetForObjectException extends pageException {}
/**
* Exception class for Import-related exceptions
* @author Jeroen Roos
* @package zophException
*/
class importException extends zophException {}
/**
* Exception class for Import-auto-rotate exceptions
* @author Jeroen Roos
* @package zophException
*/
class importAutorotException extends importException {}
/**
* Exception thrown when file is not in the import path
* @author Jeroen Roos
* @package zophException
*/
class importFileNotInPathException extends importException {}
/**
* Exception thrown when file is not found
* @author Jeroen Roos
* @package zophException
*/
class importFileNotFoundException extends importException {}
/**
* Exception thrown when ID is not numeric
* @author Jeroen Roos
* @package zophException
*/
class importIdIsNotNumericException extends importException {}
/**
* Exception thrown when multiple files have been found
* @author Jeroen Roos
* @package zophException
*/
class importMultipleMatchesException extends importException {}
/**
* Exception thrown when a file is tried to be imported that
* for some reason can not be imported
* @author Jeroen Roos
* @package zophException
*/
class importFileNotImportableException extends importException {}
class fileException extends zophException {}
class fileDirNotWritableException extends fileException {}
class fileDirectoryNotSupportedException extends fileException {}
class fileDirCreationFailedException extends fileException {}
class fileNotFoundException extends fileException {}
class fileExistsException extends fileException {}
class fileNotReadableException extends fileException {}
class fileNotWritableException extends fileException {}
class fileMoveFailedException extends fileException {}
class fileCopyFailedException extends fileException {}
class fileRenameException extends fileException {}
class fileSymlinkProblemException extends fileException {}
class fileUnkownFileTYpeException extends fileException {}
/**
* Exception thrown when something is wrong with a photo
* @author Jeroen Roos
* @package zophException
*/
class photoException extends zophException {}
/**
* Exception thrown when thumbnail can not be created
* @author Jeroen Roos
* @package zophException
*/
class photoThumbCreationFailedException extends photoException {}
/**
* Exception thrown when a photo can not be found
* @author Jeroen Roos
* @package zophException
*/
class photoNotFoundException extends photoException {}
/**
* Exception thrown when selection-related functions are called
* while there is no selection.
* @author Jeroen Roos
* @package zophException
*/
class photoNoSelectionException extends photoException {}
/**
* Exception thrown when something goes wrong with
* relation between photos
* @author Jeroen Roos
* @package zophException
*/
class relationException extends zophException {}
/**
* Exceptions for CLI
* @author Jeroen Roos
* @package zophException
*/
class cliException extends zophException {}
/**
* Exception for CLI: No arguments have been given
* @author Jeroen Roos
* @package zophException
*/
class cliNoArgumentsException extends cliException {}
/**
* Exception for CLI: No files have been given
* @author Jeroen Roos
* @package zophException
*/
class cliNoFilesException extends cliException {}
/**
* Exception for CLI: Cannot find image
* @author Jeroen Roos
* @package zophException
*/
class cliImageNotFoundException extends cliException {}
/**
* Exception for CLI: command can only be used from current working direectory.
* This is used in conjuction with the --dirpattern option
* @author Jeroen Roos
* @package zophException
*/
class cliNotInCWDException extends cliException {}
/**
* Exception for CLI: Illegal dirpattern
* This is used in conjuction with the --dirpattern option
* @author Jeroen Roos
* @package zophException
*/
class cliIllegalDirpatternException extends cliException {}
/**
* Exception for CLI: No user command
* This is used in conjuction with the --user option, if no command
* ("add", "delete" "show" or "update") is specified
* @author Jeroen Roos
* @package zophException
*/
class cliNoUserCommandException extends cliException {}
/**
* Exception for CLI: No user
* This is used in conjuction with the --user option, if no username or user-id is specified
* @author Jeroen Roos
* @package zophException
*/
class cliNoUserException extends cliException {}
/**
* Exception for CLI: No password for new user
* This is used in conjuction with the --user --new options: no password specified for new user
* @author Jeroen Roos
* @package zophException
*/
class cliNoPasswordException extends cliException {}
/**
* Exception for CLI: No parent
* This is used in conjuction with the --new option
* @author Jeroen Roos
* @package zophException
*/
class cliNoParentException extends cliException {}
/**
* Exception for CLI: CLI user is not admin
* @author Jeroen Roos
* @package zophException
*/
class cliUserNotAdminException extends cliException {}
/**
* Exception for CLI: CLI user not valid
* @author Jeroen Roos
* @package zophException
*/
class cliUserNotValidException extends cliException {}
/**
* Exception for CLI: API not compatible.
* API version between /bin/zoph and web-dir differs
* @author Jeroen Roos
* @package zophException
*/
class cliAPINotCompatibleException extends cliException {}
/**
* Exception for CLI: Unknown Error
*
* @author Jeroen Roos
* @package zophException
*/
class cliUnknownErrorException extends cliException {}
/**
* Security Exception
*
* @author Jeroen Roos
* @package zophException
*/
class securityException extends zophException {}
/**
* Key must be numeric exception
* This exception is raised when an illegal value is passed to a field that
* should always be numeric, such as a database key. This could happen when
* someone is trying to do SQL injection by padding a field with SQL code
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class keyMustBeNumericSecurityException extends securityException {}
/**
* Illegal Value Exception
* This exception is raised when an illegal value is passed,
* for example trying to sort by an unknown field. This could happen when
* someone is trying to do SQL injection by padding a field with SQL code
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class illegalValueSecurityException extends securityException {}
/**
* Album Not Accessible Exception
* This exception is raised when a user tries to access an album that
* he is not allowed to see. Since the Zoph UI hides all inaccessible
* photos, this should only happen if the user is, for example, changing
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class albumNotAccessibleSecurityException extends securityException {}
/**
* Category Not Accessible Exception
* This exception is raised when a user tries to access a category that
* he is not allowed to see. Since the Zoph UI hides all inaccessible
* photos, this should only happen if the user is, for example, changing
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class categoryNotAccessibleSecurityException extends securityException {}
/**
* Photo Not Accessible Exception
* This exception is raised when a user tries to access a photo that
* he is not allowed to see. Since the Zoph UI hides all inaccessible
* photos, this should only happen if the user is, for example, changing
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class photoNotAccessibleSecurityException extends securityException {}
/**
* Person Not Accessible Exception
* This exception is raised when a user tries to access a person that
* he is not allowed to see. Since the Zoph UI hides all inaccessible
* photos, this should only happen if the user is, for example, changing
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class personNotAccessibleSecurityException extends securityException {}
/**
* Circle Not Accessible Exception
* This exception is raised when a user tries to access a circle that
* he is not allowed to see. Since the Zoph UI hides all inaccessible
* photos, this should only happen if the user is, for example, changing
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class circleNotAccessibleSecurityException extends securityException {}
/**
* Place Not Accessible Exception
* This exception is raised when a user tries to access a place that
* he is not allowed to see. Since the Zoph UI hides all inaccessible
* photos, this should only happen if the user is, for example, changing
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class placeNotAccessibleSecurityException extends securityException {}
/**
* Insufficient rights Exception
* This exception is raised when a user tries to access a function
* he is not allowed to use. Since the Zoph UI hides all inaccessible
* function, this should only happen if the user is, for example, changing
* parameters in the URL.
* @author Jeroen Roos
* @package zophException
*/
class userInsufficientRightsSecurityException extends securityException {}
/**
* User Exception
*
* @author Jeroen Roos
* @package zophException
*/
class userException extends zophException {}
/**
* User Not Found Exception
*
* @author Jeroen Roos
* @package zophException
*/
class userNotFoundException extends userException {}
/**
* User already exists Exception
*
* @author Jeroen Roos
* @package zophException
*/
class userAlreadyExistsException extends userException {}
/**
* User Multiple Found Exception
/**
* User Multiple Found Exception
* This means there are multiple users with the same username in the database
* this should not happen.
*
* @author Jeroen Roos
* @package zophException
*/
class userMultipleFoundException extends userException {}
/**
* User acces right does not exist exception
* Zoph uses a set of access rights ("view_all_photos", "browse_places", etc.) this gets thrown if
* an access right does not exist.
* @author Jeroen Roos
* @package zophException
*/
class userUnknownAccessRightException extends userException {}
/**
* Group Exception
*
* @author Jeroen Roos
* @package zophException
*/
class groupException extends zophException {}
/**
* Group Not Found Exception
*
* @author Jeroen Roos
* @package zophException
*/
class groupNotFoundException extends groupException {}
?>
|