Skip to content

CassetteIndexException

Thrown by a CassetteIndexInterface for a genuine failure — a malformed hint, a broken query, an auth error, or a pointer that resolved to a key whose object has already expired.

Never thrown for “this index has nothing to say for this id/hints”, which is a null return instead (see CassetteIndexInterface’s own docblock) — a chain of indexes must be able to tell “nothing here, try the next one” apart from “this one is broken.”

final class CassetteIndexException extends RuntimeException

ExtendsRuntimeException
SourceIndex/CassetteIndexException.php

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
getCode()Exception
getFile()Exception
getLine()Exception
getMessage()Exception
getPrevious()Exception
getTrace()Exception
getTraceAsString()Exception