GetDKAN/dkan

View on GitHub
modules/metastore/src/Exception/ExistingObjectException.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Drupal\metastore\Exception;

/**
 * Exception thrown when metastore item already exists with a given identifier.
 *
 * @package Drupal\metastore\Exception
 */
class ExistingObjectException extends MetastoreException {

  /**
   * {@inheritdoc}
   */
  public function httpCode(): int {
    return 409;
  }

}