Libvirt-Manager/libvirt/Exception.php
2018-09-28 01:33:48 +08:00

21 lines
545 B
PHP

<?php
class HostUndefineException extends Exception {
public function __toString() {
return "Error: You must set a host before use method connect() in " . __FILE__ . ":" . __LINE__;
}
}
class LoginFailedException extends Exception {
public function __toString() {
return "Error: Failed login to ssh server in " . __FILE__ . ":" . __LINE__;
}
}
class NoConnectionException extends Exception {
public function __toString() {
return "Error: You must connect a host before use this method in " . __FILE__ . ":" . __LINE__;
}
}