<?php

namespace App\Exceptions;

/**
 * Thrown if some of the CAS LDAP attributes was not found.
 */
class CASMissingInfoException extends ApiException {
  /**
   * Create instance with textual description.
   * @param string $msg description
   */
  public function __construct(string $msg = "Reading LDAP attribute failed") {
    parent::__construct($msg);
  }
}

<?php

namespace App\Exceptions;

use Nette\Http\IResponse;

/**
 * Thrown if some of the CAS LDAP attributes was not found.
 */
class CASMissingInfoException extends ApiException {
  /**
   * Create instance with textual description.
   * @param string $msg description
   */
  public function __construct(string $msg = "Reading CAS attribute failed") {
    parent::__construct($msg, IResponse::S409_CONFLICT);
  }
}

Return 409 HTTP code on missing CAS attributes
Return 409 HTTP code on missing CAS attributes
