# yatra/3.0.15/app/Exceptions/TripNotFoundException.php

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.15. 22 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.15/code/app/Exceptions/TripNotFoundException.php
- Raw: https://pluginprobe.com/plugins/yatra/3.0.15/raw/app/Exceptions/TripNotFoundException.php
- Modified: 2026-04-14T03:47:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yatra/3.0.15/code/app/Exceptions/TripNotFoundException.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Yatra\Exceptions;

/**
 * Trip Not Found Exception
 * 
 * Thrown when a requested trip cannot be found
 */
class TripNotFoundException extends YatraException
{
    protected string $errorCode = 'trip_not_found';

    public function __construct(int $tripId, ?\Exception $previous = null)
    {
        $message = sprintf('Trip with ID %d not found', $tripId);
        parent::__construct($message, 404, $previous, ['trip_id' => $tripId]);
    }
}

```
